React Native with Nav Boilerplate
Description:
There it is yet another boilerplate.
What’s different about this one is that
it combines redux with thunk and statefull navigation
with the react-navigation lib
Create a boilerplate for rapidly prototyping future projects:
The boilerplate follows classic patterns for combining actions/reducers/component and refering to the index for cleanliness. The redux Provider start the layout and is the imidiate parent of the App which is the imidiate parent of the AppNavigator(StackNavigator). In order to create navigation (according to https://reactnavigation.org/docs/guides/redux) we need to destroy the default navigator prop and take care that we allways pass the overiden one. This boilerplate does just that. Navigation state is handled by a reducer and only sub components(ones that are handle no clobal functionality) can be dumb.
Enjoy.