Skip to content

Instantly share code, notes, and snippets.

@peterlazar1993
Created March 17, 2016 17:06
Show Gist options
  • Save peterlazar1993/c278f80a3fdecdbc15a7 to your computer and use it in GitHub Desktop.
Save peterlazar1993/c278f80a3fdecdbc15a7 to your computer and use it in GitHub Desktop.
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