summaryrefslogtreecommitdiff
path: root/app/navigators/main-navigator.tsx
diff options
context:
space:
mode:
authorKirill Rogovoy <[email protected]>2021-07-19 20:06:08 +0300
committerKirill Rogovoy <[email protected]>2021-07-19 20:06:08 +0300
commitf0bf4e7afdcd8b02a62be45ab3e7d047ed865a79 (patch)
tree575c0ff2cbb846252bd2e494c81c396846aab2f6 /app/navigators/main-navigator.tsx
parent67ad38d0a7cd319623e9f41c0c381ed5c5f6f973 (diff)
Apply Prettier
Diffstat (limited to 'app/navigators/main-navigator.tsx')
-rw-r--r--app/navigators/main-navigator.tsx17
1 files changed, 11 insertions, 6 deletions
diff --git a/app/navigators/main-navigator.tsx b/app/navigators/main-navigator.tsx
index d8dc634..a1c5bbf 100644
--- a/app/navigators/main-navigator.tsx
+++ b/app/navigators/main-navigator.tsx
@@ -4,9 +4,14 @@
*
* 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"
+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
@@ -34,11 +39,11 @@ export function MainNavigator() {
return (
<Stack.Navigator
screenOptions={{
- cardStyle: { backgroundColor: "transparent" },
+ cardStyle: { backgroundColor: 'transparent' },
headerShown: false,
}}
>
- <Stack.Screen name="graph" component={GraphScreen}/>
+ <Stack.Screen name="graph" component={GraphScreen} />
</Stack.Navigator>
)
}
@@ -55,5 +60,5 @@ export function MainNavigator() {
*
* `canExit` is used in ./app/app.tsx in the `useBackButtonHandler` hook.
*/
-const exitRoutes = ["welcome"]
+const exitRoutes = ['welcome']
export const canExit = (routeName: string) => exitRoutes.includes(routeName)