Skip to content

Commit d49e41b

Browse files
committed
fix: disable ripple when not supported in bottom navigation
1 parent c863e4c commit d49e41b

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

src/components/BottomNavigation.js

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -242,14 +242,13 @@ const MAX_TAB_WIDTH = 168;
242242
const BAR_HEIGHT = 56;
243243
const FAR_FAR_AWAY = 9999;
244244

245-
const Touchable =
246-
Platform.OS === 'android'
247-
? TouchableRipple
248-
: ({ style, children, borderless, rippleColor, ...rest }) => (
249-
<TouchableWithoutFeedback {...rest}>
250-
<View style={style}>{children}</View>
251-
</TouchableWithoutFeedback>
252-
);
245+
const Touchable = TouchableRipple.supported
246+
? TouchableRipple
247+
: ({ style, children, borderless, rippleColor, ...rest }) => (
248+
<TouchableWithoutFeedback {...rest}>
249+
<View style={style}>{children}</View>
250+
</TouchableWithoutFeedback>
251+
);
253252

254253
class SceneComponent extends React.PureComponent<*> {
255254
render() {

0 commit comments

Comments
 (0)