Eusthace Eusthace - 1 month ago 7
Javascript Question

Example of Navigation between views in React Native Android?

After check the React Native documentation, I still don't understand the best way to create views and navigate between different components.

I don't want to use any external components like:

https://github.com/Kureev/react-native-navbar/

https://github.com/23c/react-native-transparent-bar

https://github.com/superdami/react-native-custom-navigation

I don't need a Navigation bar, i just want to set views and slide left, right o pop a view, nothing more.

I know is something basic, but I can't find any helpful example.

Please, anyone can help me? Any functional example in https://rnplay.org/?

Thank you.

Answer

Watch this example : https://github.com/h87kg/NavigatorDemo

It's usefull and a good writing Navigator example, better than the above example your just wrote i really think.

Mainly watch the relation beetween LoginPage.js and MainPage.js