Open fakenickels opened 6 years ago
navigation is now derived from the parametric type commonNavigation('a) so we can sure for instance the same header component across different StackNavigators.
navigation
commonNavigation('a)
let make = (~navigation: Rebolt.StackNavigator.commonNavigation('a), _children) => { ...component, render: _self => { <View> <BackButton onPress={(_) => navigation.pop()}> </View> } }
I moved around a couple of things to accommodate the replace action. Mainly they were
didUpdate
RemoveStaleScreen
Add to the documentation
Let me know if I can improve anything else before merging
Making navigation type more generic
navigation
is now derived from the parametric typecommonNavigation('a)
so we can sure for instance the same header component across different StackNavigators.navigation.replace(Config.route)
I moved around a couple of things to accommodate the replace action. Mainly they were
didUpdate
to inside the reducer so the side effect is more explicit/directRemoveStaleScreen
(ReArray.remove, because of spliceInPlace, does not work with 0 indexes).Missing
Add to the documentation
Let me know if I can improve anything else before merging