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

@@ -833,6 +833,8 @@ declare module 'react-navigation' {
declare type _TabNavigatorConfig = {|
...NavigationTabRouterConfig,
..._TabViewConfig,
lazy?: boolean,
removeClippedSubviews?: boolean,
containerOptions?: void,
|};
declare export function TabNavigator(