Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. import "./i18n"
  2. import * as React from "react"
  3. import { AppRegistry } from "react-native"
  4. import { StatefulNavigator } from "./navigation"
  5. import { StorybookUIRoot } from "../storybook"
  6. import { RootStore, setupRootStore } from "./models/root-store"
  7. import { Provider } from "mobx-react"
  8. import { BackButtonHandler } from "./navigation/back-button-handler"
  9. import { contains } from "ramda"
  10. import { DEFAULT_NAVIGATION_CONFIG } from "./navigation/navigation-config"
  11.  
  12. // ***** ICI *****
  13. import SplashScreen from "react-native-splash-screen"
  14.  
  15. interface AppState {
  16. rootStore?: RootStore
  17. }
  18.  
  19. export class App extends React.Component<{}, AppState> {
  20. async componentDidMount() {
  21. // ***** ET LA *****
  22. SplashScreen.hide()
  23. this.setState({
  24. rootStore: await setupRootStore(),
  25. })
  26. }
  27.  
  28. ...
  29. }
  30.  
  31. ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement