From bd4dd5892c6b8756f74cb7ab9e3525a343b84f68 Mon Sep 17 00:00:00 2001 From: K Stolk Date: Thu, 11 Jul 2024 17:33:20 +0200 Subject: [PATCH] Update AnimatedTabBarNavigator.tsx --- src/AnimatedTabBarNavigator.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/AnimatedTabBarNavigator.tsx b/src/AnimatedTabBarNavigator.tsx index b875ee50..ed8ce314 100644 --- a/src/AnimatedTabBarNavigator.tsx +++ b/src/AnimatedTabBarNavigator.tsx @@ -41,6 +41,7 @@ interface IBottomTabNavigatorProps { screenOptions?: any; tabBarOptions?: any; appearance: Partial; + lazy?: boolean; } const BottomTabNavigator = ({ @@ -50,6 +51,7 @@ const BottomTabNavigator = ({ screenOptions, tabBarOptions, appearance, + lazy = true, ...rest }: IBottomTabNavigatorProps) => { @@ -82,8 +84,4 @@ const BottomTabNavigator = ({ ); } -BottomTabNavigator.defaultProps = { - lazy: true, -}; - export default createNavigatorFactory(BottomTabNavigator);