Relative Content

Tag Archive for arraysreact-nativeglobal

React Native trying to use same array globally

I am trying to learn React Native and am wondering if there is a way to store an array, say in a constant file or something, and reuse it in different components. States will be one, as an example. I want to create an array of States for a dropdown select component (I am using react-native-element-dropdown for that) and use it in several different components. The array would be like: