mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-02-09 22:51:57 +08:00
Fix lazy prop not passed (#1235)
This commit is contained in:
@@ -36,7 +36,7 @@ const TabNavigator = (
|
||||
tabBarOptions,
|
||||
swipeEnabled,
|
||||
animationEnabled,
|
||||
lazyLoad,
|
||||
lazy,
|
||||
...tabsConfig
|
||||
} = mergedConfig;
|
||||
|
||||
@@ -55,7 +55,7 @@ const TabNavigator = (
|
||||
tabBarOptions={tabBarOptions}
|
||||
swipeEnabled={swipeEnabled}
|
||||
animationEnabled={animationEnabled}
|
||||
lazyLoad={lazyLoad}
|
||||
lazy={lazy}
|
||||
/>
|
||||
));
|
||||
|
||||
@@ -68,14 +68,14 @@ const Presets = {
|
||||
tabBarPosition: 'bottom',
|
||||
swipeEnabled: false,
|
||||
animationEnabled: false,
|
||||
lazyLoad: false,
|
||||
lazy: false,
|
||||
},
|
||||
AndroidTopTabs: {
|
||||
tabBarComponent: TabBarTop,
|
||||
tabBarPosition: 'top',
|
||||
swipeEnabled: true,
|
||||
animationEnabled: true,
|
||||
lazyLoad: false,
|
||||
lazy: false,
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user