Skip to content
Advertisement

Select an item from dropdown and use that value in another component in React native

I’m just trying to do something like that (when user select an item, then navigate to another component):

JavaScript

Typically when we want to pass value between two component we use props :

JavaScript

But in this case I have o idea how can I do it without invoked AirScreen

Advertisement

Answer

Just do something like this:

JavaScript

You might want to read the following documentation: https://reactnavigation.org/docs/params/

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement