diff options
author | Kirill Rogovoy <[email protected]> | 2021-07-23 11:02:26 +0300 |
---|---|---|
committer | Kirill Rogovoy <[email protected]> | 2021-07-23 11:02:26 +0300 |
commit | 73308af061af5e17ac7d4a73fa027a2f303c70dd (patch) | |
tree | 816fb8231e13f58f7afe822742513b3150cdc871 /app_expo/navigators/main-navigator.tsx | |
parent | b8c58914cc1e251ce161905340647b6824d0a7c4 (diff) |
Update graph data when Emacs node changes + minor improvements
Diffstat (limited to 'app_expo/navigators/main-navigator.tsx')
-rw-r--r-- | app_expo/navigators/main-navigator.tsx | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/app_expo/navigators/main-navigator.tsx b/app_expo/navigators/main-navigator.tsx deleted file mode 100644 index 095a9bf..0000000 --- a/app_expo/navigators/main-navigator.tsx +++ /dev/null @@ -1,59 +0,0 @@ -/** - * This is the navigator you will modify to display the logged-in screens of your app. - * You can use RootNavigator to also display an auth flow or other user flows. - * - * You'll likely spend most of your time in this file. - */ -import React from 'react' -import { createStackNavigator } from '@react-navigation/stack' -import { WelcomeScreen, DemoScreen, DemoListScreen, GraphScreen } from '../screens' - -/** - * This type allows TypeScript to know what routes are defined in this navigator - * as well as what properties (if any) they might take when navigating to them. - * - * If no params are allowed, pass through `undefined`. Generally speaking, we - * recommend using your MobX-State-Tree store(s) to keep application state - * rather than passing state through navigation params. - * - * For more information, see this documentation: - * https://reactnavigation.org/docs/params/ - * https://reactnavigation.org/docs/typescript#type-checking-the-navigator - */ -export type PrimaryParamList = { - welcome: undefined - demo: undefined - demoList: undefined - graph: undefined -} - -// Documentation: https://reactnavigation.org/docs/stack-navigator/ -const Stack = createStackNavigator<PrimaryParamList>() - -export function MainNavigator() { - return ( - <Stack.Navigator - screenOptions={{ - cardStyle: { backgroundColor: 'transparent' }, - headerShown: false, - }} - > - <Stack.Screen name="graph" component={GraphScreen} /> - </Stack.Navigator> - ) -} - -/** - <Stack.Screen name="welcome" component={WelcomeScreen} /> - <Stack.Screen name="demo" component={DemoScreen} /> - <Stack.Screen name="demoList" component={DemoListScreen} /> - * A list of routes from which we're allowed to leave the app when - * the user presses the back button on Android. - * - * Anything not on this list will be a standard `back` action in - * react-navigation. - * - * `canExit` is used in ./app/app.tsx in the `useBackButtonHandler` hook. - */ -const exitRoutes = ['welcome'] -export const canExit = (routeName: string) => exitRoutes.includes(routeName) |