Fix animated fab position

This commit is contained in:
Arnaud Vergnet 2020-09-23 09:22:36 +02:00
parent df8f1cab24
commit 74f757ce66

View file

@ -77,15 +77,14 @@ export default class AnimatedFAB extends React.Component<PropsType> {
render() {
const {props} = this;
return (
<Animatable.View ref={this.ref} useNativeDriver={true}>
<FAB
icon={props.icon}
onPress={props.onPress}
style={{
...styles.fab,
bottom: CustomTabBar.TAB_BAR_HEIGHT,
}}
/>
<Animatable.View
ref={this.ref}
useNativeDriver={true}
style={{
...styles.fab,
bottom: CustomTabBar.TAB_BAR_HEIGHT,
}}>
<FAB icon={props.icon} onPress={props.onPress} />
</Animatable.View>
);
}