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() { render() {
const {props} = this; const {props} = this;
return ( return (
<Animatable.View ref={this.ref} useNativeDriver={true}> <Animatable.View
<FAB ref={this.ref}
icon={props.icon} useNativeDriver={true}
onPress={props.onPress} style={{
style={{ ...styles.fab,
...styles.fab, bottom: CustomTabBar.TAB_BAR_HEIGHT,
bottom: CustomTabBar.TAB_BAR_HEIGHT, }}>
}} <FAB icon={props.icon} onPress={props.onPress} />
/>
</Animatable.View> </Animatable.View>
); );
} }