Skip to content

Commit 70ceddc

Browse files
committed
refactor: override ripple in themed navigation example
1 parent 52a0642 commit 70ceddc

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

example/src/Examples/ThemingWithReactNavigation.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { View, StyleSheet } from 'react-native';
33

44
import Icon from '@expo/vector-icons/MaterialCommunityIcons';
55
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
6+
import { PlatformPressable } from '@react-navigation/elements';
67
import { createStackNavigator } from '@react-navigation/stack';
78
import { Text } from 'react-native-paper';
89

@@ -30,6 +31,12 @@ const HomeTab = () => {
3031
<Tab.Navigator
3132
screenOptions={{
3233
headerShown: false,
34+
tabBarButton: (props) => (
35+
<PlatformPressable
36+
{...props}
37+
android_ripple={{ color: 'transparent' }}
38+
/>
39+
),
3340
}}
3441
>
3542
<Tab.Screen

0 commit comments

Comments
 (0)