Fix crash on app start

Used animated from react native instead of react native reanimated in the tab bar
This commit is contained in:
Arnaud Vergnet 2020-08-06 13:46:48 +02:00
parent 1be913c5aa
commit 05f769fe79

View file

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