Created
March 17, 2016 17:06
-
-
Save peterlazar1993/03437bf6a5639b05bc8f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react-native'; | |
import { Provider } from 'react-redux'; | |
import SplashScreen from '@remobile/react-native-splashscreen'; | |
import { Scene, Router, Actions, Modal } from 'react-native-router-flux'; | |
import Auth from './screens/auth/authContainer'; | |
import LeaderBoard from './screens/leaderboard/leaderboardContainer'; | |
import store from './store/store'; | |
const scenes = Actions.create( | |
<Scene component={Modal} | |
hideNavBar | |
key="root" | |
> | |
<Scene component={Auth} | |
key="auth" | |
/> | |
<Scene component={LeaderBoard} | |
key="leaderboard" | |
/> | |
</Scene> | |
); | |
export default class App extends Component { | |
componentDidMount() { | |
SplashScreen.hide(); | |
} | |
render() { | |
return ( | |
<Provider store={store}> | |
<Router scenes={scenes} /> | |
</Provider> | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment