Unhandled JS Exception: Could not find "store" in either the context or props
<p>It's working perfectly on <code>Android</code>, but running on <code>iOS</code> fails on startup. It leaves me with a blank screen.</p>

<blockquote>
  <p>Unhandled JS Exception: Could not find "store" in either the context or props of "Connect(t)". Either wrap the root component in a , or explicitly pass "store" as a prop to "Connect(t)".</p>
</blockquote>

<p>I have my <code>store</code> as prop:</p>

<pre><code>import React, { Component } from 'react'
import { Provider } from 'react-redux'
import RootContainer from './Root'
import createStore from './Redux'
// import applyConfigSettings from './config'
// applyConfigSettings()

const store = createStore()

class App extends Component {
  render () {
    return (
      &lt;Provider store={store}&gt;
        &lt;RootContainer /&gt;
      &lt;/Provider&gt;
    )
  }
}

export default App
</code></pre>

<p><strong>RootContainer</strong></p>

<pre><code>class Root extends Component {

  componentDidMount () {
    if (!ReduxPersist.active) {
      this.props.startup()
    }
  }

  render() {
    const scenes = Pages;
    return (
      &lt;View style={{flex:1}}&gt;
        &lt;StatusBar hidden={ true } /&gt;
        &lt;Router scenes={scenes} navigationBarStyle={ Style.header } titleStyle={ Style.header_title } /&gt;
        &lt;Toast ref="toast" style={ Style.toast } position='bottom'/&gt;
      &lt;/View&gt;
    );
  }

}


const mapStateToDispatch = dispatch =&gt; ({
  startup: () =&gt; dispatch(StartupActions.startup())
})

export default connect(null, mapStateToDispatch)(Root)
</code></pre>

<p><strong>Redux.js</strong></p>

<pre><code>import { createStore, applyMiddleware, compose } from 'redux'
import { autoRehydrate } from 'redux-persist'
import createLogger from 'redux-logger'
import Config from './../config/DebugSettings'
import createSagaMiddleware from 'redux-saga'
import R from 'ramda'
import RehydrationServices from './../services/RehydrationServices'
import ReduxPersist from './../config/ReduxPersist'
import { StartupTypes } from './StartupRedux'

// creates the store
export default (rootReducer, rootSaga) =&gt; {
  /* ------------- Redux Configuration ------------- */

  const middleware = []
  const enhancers = []

  /* ------------- Saga Middleware ------------- */

  const sagaMiddleware = createSagaMiddleware()
  middleware.push(sagaMiddleware)

  /* ------------- Logger Middleware ------------- */

  const SAGA_LOGGING_BLACKLIST = ['EFFECT_TRIGGERED', 'EFFECT_RESOLVED', 'EFFECT_REJECTED', 'persist/REHYDRATE']
  if (__DEV__) {
    // the logger master switch
    const USE_LOGGING = Config.reduxLogging
    // silence these saga-based messages
    // create the logger
    const logger = createLogger({
      predicate: (getState, { type }) =&gt; USE_LOGGING &amp;&amp; R.not(R.contains(type, SAGA_LOGGING_BLACKLIST))
    })
    middleware.push(logger)
  }

  /* ------------- Reactotron Enhancer ------------- */

  // in dev, let's bring **START** with Reactotron's store enhancer
  if (__DEV__) {
    // only bring in Reactotron in dev mode
    // const createReactotronEnhancer = require('reactotron-redux')
    //
    // // create it
    // const reactotronEnhancer = createReactotronEnhancer(console.tron, {
    //   // you can flag some of your actions as important by returning true here
    //   isActionImportant: action =&gt;
    //     action.type === StartupTypes.STARTUP,
    //
    //   // you can flag to exclude certain types too... especially the chatty ones
    //   except: [...SAGA_LOGGING_BLACKLIST]
    // })
    // enhancers.push(reactotronEnhancer)
  }

  /* ------------- Assemble Middleware ------------- */

  enhancers.push(applyMiddleware(...middleware))

  /* ------------- AutoRehydrate Enhancer ------------- */

  // add the autoRehydrate enhancer
  if (ReduxPersist.active) {
    enhancers.push(autoRehydrate())
  }

  const store = createStore(rootReducer, compose(...enhancers))

  // configure persistStore and check reducer version number
  if (ReduxPersist.active) {
    RehydrationServices.updateReducers(store)
  }

  // kick off root saga
  sagaMiddleware.run(rootSaga)

  return store
}
</code></pre>

<p><strong>EDIT</strong></p>

<p><strong>Redux/index.js</strong></p>

<pre><code>export default () =&gt; {
  /* ------------- Assemble The Reducers ------------- */
  const rootReducer = combineReducers({
    data: require('./DataRedux').reducer,
  })

  return configureStore(rootReducer, rootSaga)
}
</code></pre>