I'm using React Navigation to create a bottom bar navigation as document here (see code below).
import { createMaterialBottomTabNavigator } from '@react-navigation/material-bottom-tabs';
const Tab = createMaterialBottomTabNavigator();
function MyTabs() {
return (
<Tab.Navigator>
<Tab.Screen name="Home" component={HomeScreen} />
<Tab.Screen name="Settings" component={SettingsScreen} />
</Tab.Navigator>
);
}
I have another Screen that I'd like to register without adding it to this Tab.Navigator
, so that I can use navigation.navigate("myOtherScreen")
somewhere else.
How can I do that ?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…