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' ;
@@ -18,8 +18,8 @@ import type { RootNavigationProp } from '../navigation/types';
1818import { resetSendTransaction } from '../store/actions/wallet' ;
1919import { spendingOnboardingSelector } from '../store/reselect/aggregations' ;
2020import { viewControllersSelector } from '../store/reselect/ui' ;
21+ import { TViewController } from '../store/types/ui' ;
2122import { toggleBottomSheet } from '../store/utils/ui' ;
22- import { AnimatedView } from '../styles/components' ;
2323import { ScanIcon } from '../styles/icons' ;
2424import ButtonBlur from './buttons/ButtonBlur' ;
2525
@@ -35,8 +35,15 @@ 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 : TViewController [ ] = [
39+ 'backupPrompt' ,
40+ 'PINNavigation' ,
41+ 'highBalance' ,
42+ 'appUpdatePrompt' ,
43+ 'timeRangePrompt' ,
44+ 'tagsPrompt' ,
45+ ] ;
46+ return viewControllerKeys . some ( ( view ) => viewControllers [ view ] . isOpen ) ;
4047 } , [ viewControllers ] ) ;
4148
4249 const onReceivePress = ( ) : void => {
@@ -73,19 +80,16 @@ const TabBar = ({
7380 return Platform . OS === 'android' ? androidStyles : iosStyles ;
7481 } , [ white10 ] ) ;
7582
76- const bottom = useMemo ( ( ) => Math . max ( insets . bottom , 16 ) , [ insets . bottom ] ) ;
77- const sendXml = useMemo ( ( ) => sendIcon ( 'white' ) , [ ] ) ;
78- const receiveXml = useMemo ( ( ) => receiveIcon ( 'white' ) , [ ] ) ;
83+ const bottom = Math . max ( insets . bottom , 16 ) ;
84+ const sendXml = sendIcon ( 'white' ) ;
85+ const receiveXml = receiveIcon ( 'white' ) ;
7986
8087 if ( shouldHide ) {
8188 return < > </ > ;
8289 }
8390
8491 return (
85- < AnimatedView
86- style = { [ styles . tabRoot , { bottom } ] }
87- color = "transparent"
88- entering = { FadeIn } >
92+ < Animated . View style = { [ styles . tabRoot , { bottom } ] } entering = { FadeIn } >
8993 < ButtonBlur
9094 style = { styles . send }
9195 text = { t ( 'send' ) }
@@ -110,7 +114,7 @@ const TabBar = ({
110114 testID = "Receive"
111115 onPress = { onReceivePress }
112116 />
113- </ AnimatedView >
117+ </ Animated . View >
114118 ) ;
115119} ;
116120
0 commit comments