There are a couple of tutorials online on how to use react-native-navigation with Redux. However, none of them is complete and I really do not understand what do I need to return in my root function.
If I do return
<Provider store={mystore}>
<MainScreen />
</Provider>
Then, why the need to use registerComponentWithRedux
?
If I use registerComponentWithRedux
then I would expect to not to have to wrap my component with the provider again.
Can anyone clarify this, or does any one know a full-complete-working example of react-native-navigation with registerComponentWithRedux
?
As said, I saw plenty of tutorials online but they do not specify what is returned in the entry file of the application.