import * as React from "react" ; import { Provider } from "react-redux" ; import Reactotron from "reactotron-react-native" ; import "../Config" ; import DebugConfig from "../Config/DebugConfig" ; import createStore from "../Reducers" ; import RootContainer from "./RootContainer" ; 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 React . Component { public render ( ) { return ( < Provider store = { store } > < RootContainer /> < /Provider>); } } export default DebugConfig . useReactotron ? Reactotron . overlay ( App ) : App ;