I am using react-native-router-flux
to manage navigation in my app. I wanted to know if I should create a store for each scene or should I only create one (and how?)
Right now it looks like this:
App.js
<Router>
<Scene key="root">
<Scene key="mainScene" component={MainScene} title="MainScene" initial={true} />
<Scene key="secondScene" component={SecondScene} title="SecondScene" />
</Scene>
</Router>
MainScene.js
<Provider store={store}>
<MainConnectedComponent/>
</Provider>
SecondScene.js
<Provider store={store}>
<SecondConnectedComponent/>
</Provider>
I read somewhere that redux likes only one store, but I don't know how to make that possible with this kind of navigation that separates the app to different parts.