Skip to content

Instantly share code, notes, and snippets.

@pytqqq
Created April 12, 2023 09:21
Show Gist options
  • Save pytqqq/05508d57b9d9868bc3ea0632fb73e201 to your computer and use it in GitHub Desktop.
Save pytqqq/05508d57b9d9868bc3ea0632fb73e201 to your computer and use it in GitHub Desktop.
import MiniAppScreen from "../screens/MiniAppScreen";
export type MainStackParamList = {
Home: undefined;
Detail: undefined;
MiniApp: undefined;
};
export type MainStackNavigationProp =
NativeStackNavigationProp<MainStackParamList>;
const Main = createNativeStackNavigator<MainStackParamList>();
const MainNavigator = () => {
return (
<Main.Navigator
screenOptions={{
headerTitle: "HostApp",
headerBackTitleVisible: false,
}}
>
<Main.Screen name="Home" component={HomeScreen} />
<Main.Screen name="Detail" component={DetailScreen} />
<Main.Screen name="MiniApp" component={MiniAppScreen} />
</Main.Navigator>
);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment