Shell/Bash: install react native navigation Example

By

Shell/Bash Example: This is the "install react native navigation" Example. compiled from many sources on the internet by SimpleTutorials.org

install react native navigation

npm install @react-navigation/stack 
npm install @react-navigation/native --save

react navigation react native

### ISNTALATION

npm install @react-navigation/native --save
yarn add @react-navigation/native

### core dependencies

expo install react-native-gesture-handler react-native-reanimated react-native-screens react-native-safe-area-context @react-native-community/masked-view

### stack navigation
yarn add @react-navigation/stack

react navigation install

expo install react-native-gesture-handler react-native-reanimated react-native-screens react-native-safe-area-context @react-native-community/masked-view
Copy

react navigation react native

// USAGE

// In App.js in a new project

import * as React from 'react';
import { View, Text } from 'react-native';
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack';

function HomeScreen() {
  return (
    
      Home Screen
    
  );
}

const Stack = createStackNavigator();

function App() {
  return (
    
      
        
      
    
  );
}

export default App;



* Summary: This "install react native navigation" Shell/Bash Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!

Others