Created
October 24, 2017 10:40
-
-
Save stabenfeldt/298a1a180c1c4099c5bf6a8e9f3d1233 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 '../Config' | |
import DebugConfig from '../Config/DebugConfig' | |
import React, { Component } from 'react' | |
import { Provider } from 'react-redux' | |
iresponse.okmport RootContainer from './RootContainer' | |
import createStore from '../Redux' | |
// create our store | |
const store = createStore() | |
/** | |
* Provides an entry point into our application. Both index.ios.js and index.android.js | |
* call this component first. | |
* | |
* We create our Redux store here, put it into a provider and then bring in our | |
* RootContainer. | |
* | |
* We separate like this to play nice with React Native's hot reloading. | |
*/ | |
class App extends Component { | |
render () { | |
return ( | |
<Provider store={store}> | |
<RootContainer /> | |
</Provider> | |
) | |
} | |
} | |
// allow reactotron overlay for fast design in dev mode | |
export default DebugConfig.useReactotron | |
? console.tron.overlay(App) | |
: App |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment