Browse Source

Fix animated fab position

Arnaud Vergnet 3 years ago
parent
commit
74f757ce66
1 changed files with 8 additions and 9 deletions
  1. 8
    9
      src/components/Animations/AnimatedFAB.tsx

+ 8
- 9
src/components/Animations/AnimatedFAB.tsx View File

@@ -77,15 +77,14 @@ export default class AnimatedFAB extends React.Component<PropsType> {
77 77
   render() {
78 78
     const {props} = this;
79 79
     return (
80
-      <Animatable.View ref={this.ref} useNativeDriver={true}>
81
-        <FAB
82
-          icon={props.icon}
83
-          onPress={props.onPress}
84
-          style={{
85
-            ...styles.fab,
86
-            bottom: CustomTabBar.TAB_BAR_HEIGHT,
87
-          }}
88
-        />
80
+      <Animatable.View
81
+        ref={this.ref}
82
+        useNativeDriver={true}
83
+        style={{
84
+          ...styles.fab,
85
+          bottom: CustomTabBar.TAB_BAR_HEIGHT,
86
+        }}>
87
+        <FAB icon={props.icon} onPress={props.onPress} />
89 88
       </Animatable.View>
90 89
     );
91 90
   }

Loading…
Cancel
Save