forked from vergnet/application-amicale
Fix crash on app start
Used animated from react native instead of react native reanimated in the tab bar
This commit is contained in:
parent
1be913c5aa
commit
05f769fe79
1 changed files with 2 additions and 2 deletions
|
@ -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={{
|
||||||
|
|
Loading…
Reference in a new issue