()
| 27 | } |
| 28 | |
| 29 | const HomeTab = () => { |
| 30 | return ( |
| 31 | <Tab.Navigator |
| 32 | screenOptions={{ |
| 33 | headerShown: false, |
| 34 | tabBarButton: (props) => ( |
| 35 | <PlatformPressable |
| 36 | {...props} |
| 37 | android_ripple={{ color: 'transparent' }} |
| 38 | /> |
| 39 | ), |
| 40 | }} |
| 41 | > |
| 42 | <Tab.Screen |
| 43 | name="Home" |
| 44 | component={HomeScreen} |
| 45 | options={{ |
| 46 | tabBarIcon: ({ color, size }) => { |
| 47 | return <Icon name="home" size={size} color={color} />; |
| 48 | }, |
| 49 | }} |
| 50 | /> |
| 51 | <Tab.Screen |
| 52 | name="Settings" |
| 53 | component={SettingsScreen} |
| 54 | options={{ |
| 55 | tabBarIcon: ({ color, size }) => { |
| 56 | return <Icon name="cog" size={size} color={color} />; |
| 57 | }, |
| 58 | }} |
| 59 | /> |
| 60 | </Tab.Navigator> |
| 61 | ); |
| 62 | }; |
| 63 | |
| 64 | function ThemingWithReactNavigation() { |
| 65 | return ( |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…