Fix animation error
This commit is contained in:
parent
d3a48d95c3
commit
aac598a94a
1 changed files with 12 additions and 11 deletions
|
@ -30,8 +30,6 @@ import { StackNavigationProp } from '@react-navigation/stack';
|
||||||
import AutoHideHandler from '../../utils/AutoHideHandler';
|
import AutoHideHandler from '../../utils/AutoHideHandler';
|
||||||
import { TAB_BAR_HEIGHT } from '../Tabbar/CustomTabBar';
|
import { TAB_BAR_HEIGHT } from '../Tabbar/CustomTabBar';
|
||||||
|
|
||||||
const AnimatedFAB = Animatable.createAnimatableComponent(FAB);
|
|
||||||
|
|
||||||
type PropsType = {
|
type PropsType = {
|
||||||
navigation: StackNavigationProp<any>;
|
navigation: StackNavigationProp<any>;
|
||||||
theme: ReactNativePaper.Theme;
|
theme: ReactNativePaper.Theme;
|
||||||
|
@ -164,16 +162,19 @@ class AnimatedBottomBar extends React.Component<PropsType, StateType> {
|
||||||
>
|
>
|
||||||
<Surface style={styles.surface}>
|
<Surface style={styles.surface}>
|
||||||
<View style={styles.fabContainer}>
|
<View style={styles.fabContainer}>
|
||||||
<AnimatedFAB
|
<Animatable.View
|
||||||
animation={props.seekAttention ? 'bounce' : undefined}
|
|
||||||
easing="ease-out"
|
|
||||||
iterationDelay={500}
|
|
||||||
iterationCount="infinite"
|
|
||||||
useNativeDriver
|
|
||||||
style={styles.fab}
|
style={styles.fab}
|
||||||
icon="account-clock"
|
animation={props.seekAttention ? 'bounce' : undefined}
|
||||||
onPress={() => props.navigation.navigate('group-select')}
|
easing={'ease-out'}
|
||||||
/>
|
iterationDelay={500}
|
||||||
|
iterationCount={'infinite'}
|
||||||
|
useNativeDriver={true}
|
||||||
|
>
|
||||||
|
<FAB
|
||||||
|
icon={'account-clock'}
|
||||||
|
onPress={() => props.navigation.navigate('group-select')}
|
||||||
|
/>
|
||||||
|
</Animatable.View>
|
||||||
</View>
|
</View>
|
||||||
<View style={styles.side}>
|
<View style={styles.side}>
|
||||||
<IconButton
|
<IconButton
|
||||||
|
|
Loading…
Reference in a new issue