react-native-navigation.
React navigation
The community solution to navigation is a standalone library that allows developers to set up the screens of an app with a few lines of code. The current React Navigation on Vega Platform supports React Navigation version 6.x Warning: The version of React Navigation has been updated to 6.x, please check the React Navigation website to review any breaking changes.Breaking changes example
drawerType="permanent" option has been moved under the screenOptions prop,
Installation and setup
First, you need to add your desired React Navigation dependencies in your project’spackage.json:
Warning: Due to recent dependency update in React Navigation, "@amazon-devices/react-native-screens": "~2.0.0" is now required to be added as a dependency for any package that uses Navigation, failure to do so will result in app crash.
package.json:
NavigationContainer. Usually you’d do this in your entry file, such as index.js or App.js:
Usage
Now you can create an app with a home screen and a profile screen:Home and Profile) defined using the Stack.Screen component. Similarly, you can define as many screens as you like.
You can set options such as the screen title for each screen in the options prop of Stack.Screen.
Each screen takes a component prop that is a React component. Those components receive a prop called navigation which has various methods to link to other screens. For example, you can use navigation.navigate to go to the Profile screen:
Animated library to deliver 60fps animations that are run on the native thread. Plus, the animations and gestures can be customized.
React Navigation also has packages for different kind of navigators such as tabs and drawer. You can use them to implement various patterns in your app. React Navigation on Vega Platform currently does not support native navigation Native Stack Navigator since we do not support react-native-screens community package yet.

