stack navigator how install code example
Example 1: install react native navigation stack
npm install react-navigation-stack -native-community/masked-view react-native-safe-area-context
Example 2: react navigation stack
npm install -navigation/native
npm install react-native-gesture-handler react-native-reanimated react-native-screens react-native-safe-area-context -native-community/masked-view
npm install -navigation/stack