diff options
author | Kirill Rogovoy <[email protected]> | 2021-07-19 20:06:08 +0300 |
---|---|---|
committer | Kirill Rogovoy <[email protected]> | 2021-07-19 20:06:08 +0300 |
commit | f0bf4e7afdcd8b02a62be45ab3e7d047ed865a79 (patch) | |
tree | 575c0ff2cbb846252bd2e494c81c396846aab2f6 /app/app.tsx | |
parent | 67ad38d0a7cd319623e9f41c0c381ed5c5f6f973 (diff) |
Apply Prettier
Diffstat (limited to 'app/app.tsx')
-rw-r--r-- | app/app.tsx | 35 |
1 files changed, 19 insertions, 16 deletions
diff --git a/app/app.tsx b/app/app.tsx index d737864..459bc39 100644 --- a/app/app.tsx +++ b/app/app.tsx @@ -9,30 +9,33 @@ * The app navigation resides in ./app/navigators, so head over there * if you're interested in adding screens and navigators. */ -import "./i18n" -import "./utils/ignore-warnings" -import React, { useState, useEffect, useRef } from "react" -import { NavigationContainerRef } from "@react-navigation/native" -import { SafeAreaProvider, initialWindowMetrics } from "react-native-safe-area-context" -import { initFonts } from "./theme/fonts" // expo -import * as storage from "./utils/storage" +import './i18n' +import './utils/ignore-warnings' +import React, { useState, useEffect, useRef } from 'react' +import { NavigationContainerRef } from '@react-navigation/native' +import { + SafeAreaProvider, + initialWindowMetrics, +} from 'react-native-safe-area-context' +import { initFonts } from './theme/fonts' // expo +import * as storage from './utils/storage' import { useBackButtonHandler, RootNavigator, canExit, setRootNavigation, useNavigationPersistence, -} from "./navigators" -import { RootStore, RootStoreProvider, setupRootStore } from "./models" -import { ToggleStorybook } from "../storybook/toggle-storybook" +} from './navigators' +import { RootStore, RootStoreProvider, setupRootStore } from './models' +import { ToggleStorybook } from '../storybook/toggle-storybook' // This puts screens in a native ViewController or Activity. If you want fully native // stack navigation, use `createNativeStackNavigator` in place of `createStackNavigator`: // https://github.com/kmagiera/react-native-screens#using-native-stack-navigator -import { enableScreens } from "react-native-screens" +import { enableScreens } from 'react-native-screens' enableScreens() -export const NAVIGATION_PERSISTENCE_KEY = "NAVIGATION_STATE" +export const NAVIGATION_PERSISTENCE_KEY = 'NAVIGATION_STATE' /** * This is the root component of our app. @@ -43,10 +46,10 @@ function App() { setRootNavigation(navigationRef) useBackButtonHandler(navigationRef, canExit) - const { initialNavigationState, onNavigationStateChange } = useNavigationPersistence( - storage, - NAVIGATION_PERSISTENCE_KEY, - ) + const { + initialNavigationState, + onNavigationStateChange, + } = useNavigationPersistence(storage, NAVIGATION_PERSISTENCE_KEY) // Kick off initial async loading actions, like loading fonts and RootStore useEffect(() => { |