TabNavigation: Lazy-Loading per Tab individually
complete
Martin Eckardt
Make it possible to define for each tab individually if it should be lazy loaded or not. Right now it can only be defined for all tabs in the TabNavigatorConfig.
static navigationOptions = ({ navigation, screenProps }) => ({
tabBarOnPress: () => ...
lazy: false,
tabBarLabel: ...
tabBarIcon: ...
})
satya164
complete
Implemented in 6.x
Brent Vatne
seems reasonable. i'd rather specify it in the lazy param itself, so if you could say
lazy: true
, lazy: false
, lazy: ['routeName1', 'routeName2']
- if this works for you then please open a rfc