Skip to content

Instantly share code, notes, and snippets.

@pytqqq
Created April 14, 2023 08:36
Show Gist options
  • Save pytqqq/d65e913bb2f5714bd6249fa7e9369d68 to your computer and use it in GitHub Desktop.
Save pytqqq/d65e913bb2f5714bd6249fa7e9369d68 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,
headerStyle: styles.header,
headerTitleStyle: styles.headerTitle,
headerTintColor: "rgba(255,255,255,1)",
}}
>
<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