@@ -2,6 +2,7 @@ import React, { useMemo, memo } from 'react';
22import { View , Text , LayoutChangeEvent } from 'react-native' ;
33import Animated from 'react-native-reanimated' ;
44import { interpolateColor , useValue } from 'react-native-redash/lib/module/v1' ;
5+ import { RectButton } from 'react-native-gesture-handler' ;
56// @ts -ignore 😞
67import isEqual from 'lodash.isequal' ;
78import { interpolate } from '../../../utilities' ;
@@ -30,6 +31,7 @@ const BubbleTabBarItemComponent = ({
3031 //#endregion
3132
3233 //#region variables
34+ const borderRadius = innerVerticalSpace * 2 + iconSize ;
3335 const labelWidth = useValue < number > ( 0 ) ;
3436 /**
3537 * @DEV
@@ -62,13 +64,14 @@ const BubbleTabBarItemComponent = ({
6264 } ) ,
6365 } ,
6466 ] ;
67+ const buttonStyle = { borderRadius } ;
6568 const contentContainerStyle = [
6669 styles . contentContainer ,
6770 {
6871 flexDirection : isRTL ? 'row-reverse' : 'row' ,
6972 paddingHorizontal : innerHorizontalSpace ,
7073 paddingVertical : innerVerticalSpace ,
71- borderRadius : innerVerticalSpace * 2 + iconSize ,
74+ borderRadius,
7275 backgroundColor : interpolateColor ( animatedFocus , {
7376 inputRange : [ 0 , 1 ] ,
7477 outputRange : [ background . inactiveColor , background . activeColor ] ,
@@ -126,9 +129,11 @@ const BubbleTabBarItemComponent = ({
126129
127130 return (
128131 < Animated . View style = { containerStyle } >
129- < Animated . View style = { contentContainerStyle } >
130- < View style = { iconContainerStyle } > { renderIcon ( ) } </ View >
131- </ Animated . View >
132+ < RectButton rippleColor = { background . activeColor } style = { buttonStyle } >
133+ < Animated . View style = { contentContainerStyle } >
134+ < View style = { iconContainerStyle } > { renderIcon ( ) } </ View >
135+ </ Animated . View >
136+ </ RectButton >
132137 < Animated . View style = { labelContainerStyle } >
133138 < Text onLayout = { handleTextLayout } style = { labelStyle } numberOfLines = { 1 } >
134139 { label }
0 commit comments