react-navigation-v5

How can I force TabBar to show in all App screens react-navigation v5?

浪子不回头ぞ 提交于 2020-04-18 06:31:48
问题 I'm trying to show the Bottom TabBar in every screen in my app, but i can't find a way to do it in RN V5 yet, So When i tried to use tabBarVisible like this <BottomTab.Navigator lazy={false} tabBar={props => <TabBar {...props} />} screenOptions={({route}) => ( console.log('route', route), it's just log the five bottom component i have { tabBarVisible: ({routes}) => { let tabBarVisible = false; console.log('screens', routes); // Not log anything! return {tabBarVisible}; }, } )} .... > ... 5