I have an issue with Drawer navigation in React Native Navigation.
The problem seems to be very simple.
I have 2 screens, on each screen I have a button that sends the user to the other one.
the problem is after sending the user from screen A to B and from B to A the button does not work anymore.
I can pull the drawer and go back to the B screen again, and the Button works there, but the button in the A screen is still frozen, the hole screen basically.
import React from "react";
import { createDrawerNavigator } from "@react-navigation/drawer";
import SettingScreen from "../screens/SettingScreen";
import ProfileScreen from "../screens/ProfileScreen";
const Drawer = createDrawerNavigator();
function MenuNavigation(props) {
return (
<Drawer.Navigator>
<Drawer.Screen name="Setting" component={SettingScreen} />
<Drawer.Screen name="Profile" component={ProfileScreen} />
</Drawer.Navigator>
);
}
export default MenuNavigation;
question from:
https://stackoverflow.com/questions/65854555/screen-freeze-when-navigate-in-react-native-navigation-with-drawer-navigation 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…