From f0bf4e7afdcd8b02a62be45ab3e7d047ed865a79 Mon Sep 17 00:00:00 2001 From: Kirill Rogovoy Date: Mon, 19 Jul 2021 20:06:08 +0300 Subject: Apply Prettier --- app/app.tsx | 35 +++++++++++++++++++---------------- 1 file changed, 19 insertions(+), 16 deletions(-) (limited to 'app/app.tsx') 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(() => { -- cgit v1.2.3