Browse Source

Fix crash on app start

Used animated from react native instead of react native reanimated in the tab bar
Arnaud Vergnet 1 year ago
parent
commit
05f769fe79
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/components/Tabbar/CustomTabBar.js

+ 2
- 2
src/components/Tabbar/CustomTabBar.js View File

@@ -1,8 +1,8 @@
1 1
 // @flow
2 2
 
3 3
 import * as React from 'react';
4
+import {Animated} from 'react-native';
4 5
 import {withTheme} from 'react-native-paper';
5
-import Animated from 'react-native-reanimated';
6 6
 import {Collapsible} from 'react-navigation-collapsible';
7 7
 import {StackNavigationProp} from '@react-navigation/stack';
8 8
 import TabIcon from './TabIcon';
@@ -194,8 +194,8 @@ class CustomTabBar extends React.Component<PropsType, StateType> {
194 194
     const {props, state} = this;
195 195
     props.navigation.addListener('state', this.onRouteChange);
196 196
     const icons = this.getIcons();
197
-    // $FlowFixMe
198 197
     return (
198
+      // $FlowFixMe
199 199
       <Animated.View
200 200
         useNativeDriver
201 201
         style={{

Loading…
Cancel
Save