From aac598a94ac9896d76c8e78b898bc12bcb628bca Mon Sep 17 00:00:00 2001 From: Arnaud Vergnet Date: Mon, 10 May 2021 21:34:15 +0200 Subject: [PATCH] Fix animation error --- .../Animations/AnimatedBottomBar.tsx | 23 ++++++++++--------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/src/components/Animations/AnimatedBottomBar.tsx b/src/components/Animations/AnimatedBottomBar.tsx index 91bd2c4..a334bd3 100644 --- a/src/components/Animations/AnimatedBottomBar.tsx +++ b/src/components/Animations/AnimatedBottomBar.tsx @@ -30,8 +30,6 @@ import { StackNavigationProp } from '@react-navigation/stack'; import AutoHideHandler from '../../utils/AutoHideHandler'; import { TAB_BAR_HEIGHT } from '../Tabbar/CustomTabBar'; -const AnimatedFAB = Animatable.createAnimatableComponent(FAB); - type PropsType = { navigation: StackNavigationProp; theme: ReactNativePaper.Theme; @@ -164,16 +162,19 @@ class AnimatedBottomBar extends React.Component { > - props.navigation.navigate('group-select')} - /> + animation={props.seekAttention ? 'bounce' : undefined} + easing={'ease-out'} + iterationDelay={500} + iterationCount={'infinite'} + useNativeDriver={true} + > + props.navigation.navigate('group-select')} + /> +