Using state in other components


I am trying to learn React-Native but find it’s really difficult to try and get on with.
I have set up my state in my parent app file and I would like to then use that state on another page…

So basically I would like to have a form on a separate page(component) where I can submit data to my state

Is there anywhere I can learn about this?


Put a component above the two places you want to use the state, put the state there. Pass it to the two components as props.

And what do you mean by “page”, what is your setup – there isn’t really such a thing, there are just components, but if you’re using a navigation library then you can pass arbitrary state through the navigation