Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import "./i18n"
- import * as React from "react"
- import { AppRegistry } from "react-native"
- import { StatefulNavigator } from "./navigation"
- import { StorybookUIRoot } from "../storybook"
- import { RootStore, setupRootStore } from "./models/root-store"
- import { Provider } from "mobx-react"
- import { BackButtonHandler } from "./navigation/back-button-handler"
- import { contains } from "ramda"
- import { DEFAULT_NAVIGATION_CONFIG } from "./navigation/navigation-config"
- // ***** ICI *****
- import SplashScreen from "react-native-splash-screen"
- interface AppState {
- rootStore?: RootStore
- }
- export class App extends React.Component<{}, AppState> {
- async componentDidMount() {
- // ***** ET LA *****
- SplashScreen.hide()
- this.setState({
- rootStore: await setupRootStore(),
- })
- }
- ...
- }
- ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement