This is my react native app.js file code.
const Stack = createNativeStackNavigator();
const App = () => {
return (
<AuthProvider>
<NavigationContainer>
<AuthStack/>
{/* <DrawerNavigation/> */}
</NavigationContainer>
</AuthProvider>
)
}
export default App;
In the <AuthStack/> I added the stack navigation. According to that code, it's working.
And also added <DrawerNavigation/> I created drawer navigation to the screen. But cannot use both in same code like abow. I am new to the react-native can you tell me how can I solve this?