React navigation v5 tutorial
Open your app.js (index file from react-native project).
(you can remove all code and follow our instructions)
Import base React from react.
Import base React from react.
import React from 'react';
next, if we want a container for navigation then we have to import navigation container component from native inside react-navigation.
import { NavigationContainer } from '@react-navigation/native';
Now with this component you can return <NavigationContainer> inside your App function:
function App(){
return (
<NavigationContainer>
{/* Next code goes here */}
</NavigationContainer>
);
};
For demo you watch this video:
Thank you