77 StyleSheet ,
88 ViewStyle ,
99} from 'react-native' ;
10- import { FadeIn } from 'react-native-reanimated' ;
10+ import Animated , { FadeIn } from 'react-native-reanimated' ;
1111import { useSafeAreaInsets } from 'react-native-safe-area-context' ;
1212
1313import { receiveIcon , sendIcon } from '../assets/icons/tabs' ;
@@ -19,8 +19,8 @@ import { resetSendTransaction } from '../store/actions/wallet';
1919import { spendingOnboardingSelector } from '../store/reselect/aggregations' ;
2020import { viewControllersSelector } from '../store/reselect/ui' ;
2121import { toggleBottomSheet } from '../store/utils/ui' ;
22- import { AnimatedView } from '../styles/components' ;
2322import { ScanIcon } from '../styles/icons' ;
23+ import { objectKeys } from '../utils/objectKeys' ;
2424import ButtonBlur from './buttons/ButtonBlur' ;
2525
2626const TabBar = ( {
@@ -35,8 +35,8 @@ const TabBar = ({
3535 const isSpendingOnboarding = useAppSelector ( spendingOnboardingSelector ) ;
3636
3737 const shouldHide = useMemo ( ( ) => {
38- const activityFilterSheets = [ 'timeRangePrompt' , 'tagsPrompt' ] ;
39- return activityFilterSheets . some ( ( view ) => viewControllers [ view ] . isOpen ) ;
38+ const viewControllerKeys = objectKeys ( viewControllers ) ;
39+ return viewControllerKeys . some ( ( view ) => viewControllers [ view ] . isOpen ) ;
4040 } , [ viewControllers ] ) ;
4141
4242 const onReceivePress = ( ) : void => {
@@ -73,19 +73,16 @@ const TabBar = ({
7373 return Platform . OS === 'android' ? androidStyles : iosStyles ;
7474 } , [ white10 ] ) ;
7575
76- const bottom = useMemo ( ( ) => Math . max ( insets . bottom , 16 ) , [ insets . bottom ] ) ;
77- const sendXml = useMemo ( ( ) => sendIcon ( 'white' ) , [ ] ) ;
78- const receiveXml = useMemo ( ( ) => receiveIcon ( 'white' ) , [ ] ) ;
76+ const bottom = Math . max ( insets . bottom , 16 ) ;
77+ const sendXml = sendIcon ( 'white' ) ;
78+ const receiveXml = receiveIcon ( 'white' ) ;
7979
8080 if ( shouldHide ) {
8181 return < > </ > ;
8282 }
8383
8484 return (
85- < AnimatedView
86- style = { [ styles . tabRoot , { bottom } ] }
87- color = "transparent"
88- entering = { FadeIn } >
85+ < Animated . View style = { [ styles . tabRoot , { bottom } ] } entering = { FadeIn } >
8986 < ButtonBlur
9087 style = { styles . send }
9188 text = { t ( 'send' ) }
@@ -110,7 +107,7 @@ const TabBar = ({
110107 testID = "Receive"
111108 onPress = { onReceivePress }
112109 />
113- </ AnimatedView >
110+ </ Animated . View >
114111 ) ;
115112} ;
116113
0 commit comments