<Provider> does not support changing `store` on the fly in reactnative + redux : <p>error message - </p>

<p>Provider does not support changing store on the fly. It is most likely that you see this error because you updated to Redux 2.x and React Redux 2.x which no longer hot reload reducers automatically. See <a href="https://github.com/reactjs/react-redux/releases/tag/v2.0.0" rel="noreferrer">https://github.com/reactjs/react-redux/releases/tag/v2.0.0</a> for the migration instructions.</p>

<p>configureStore.js -</p>

<pre><code>import { createStore,applyMiddleware } from 'redux';
import ReduxThunk from 'redux-thunk';
import reducers from './reducers';

export default function configureStore(initialState) {
  const store = createStore(reducers,{},applyMiddleware(ReduxThunk));

  if (module.hot) {
    // console.log("in module.hot");
    console.log(reducers);
    module.hot.accept( () =&gt; {
      const nextRootReducer = require('./reducers/index').default;
      store.replaceReducer(nextRootReducer)
    });
  }
    return store;
}
</code></pre>

<p>App.js -</p>

<pre><code>render(){
    const store = configureStore();
    return(
          &lt;Provider store = {store}&gt;
                &lt;Container&gt;
                      &lt;Login/&gt;
                &lt;/Container&gt;
        &lt;/Provider&gt;
</code></pre>

<p>refrence -
video - <a href="https://www.youtube.com/watch?v=t2WXfAqLXJw" rel="noreferrer">https://www.youtube.com/watch?v=t2WXfAqLXJw</a><br>
github - <a href="https://github.com/reactjs/react-redux/releases/tag/v2.0.0" rel="noreferrer">https://github.com/reactjs/react-redux/releases/tag/v2.0.0</a></p>

<p>solution given in video is implemented</p>
