Add back support for lazy tabs and use removeClippedSubviews (#3538)

* Lazy initialization of tabs and move contents off-screen when not active

* Make subview clipping and lazy both configurable

* Record snapshots again

* Update type definition

* Remove unused log
This commit is contained in:
Brent Vatne
2018-02-16 16:59:19 -08:00
committed by GitHub
parent c74f001b1c
commit 3600ecbd9b
7 changed files with 155 additions and 30 deletions

View File

@@ -163,6 +163,8 @@ const SimpleTabs = TabNavigator(
},
},
{
lazy: true,
removeClippedSubviews: true,
tabBarOptions: {
activeTintColor: Platform.OS === 'ios' ? '#e91e63' : '#fff',
},