简体   繁体   中英

Is the Navigator component the only way of switching screens in a react-native app?

I am in the process of learning React-Native as I develop my first app, and have arrived at the point that I want to switch to a different screen when the user taps an item in my ListView. In a couple of React-Native applications I saw, they included a Navigator component in their main index.*.js and used the Navigator to transition between screens. This looks like a good way to do things. However, for thoroughness, I would like to know if there are other ways in React-Native of switching between screens or if the Navigator component would be my only option.

You can use NavigationExperimental

And have a look at NavigationTransitioner which is part of it

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM