-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Error : Animated events must have event data #7722
Copy link
Copy link
Closed
software-mansion/react-native-gesture-handler
#1171Description
Current Behavior
My App crashed when I swipe to tabs on Android And got this error
Animated events must have event data
Code snippet
import {createAppContainer} from 'react-navigation';
import {createMaterialTopTabNavigator} from 'react-navigation-tabs';
import MyFavorite from '../MyFavorite/MyFavorite';
import YourPlaylist from '../YourPlaylist/YourPlaylist';
const TabNavigator = createMaterialTopTabNavigator(
{
Playlist: {
screen: YourPlaylist,
},
Favorite: {
screen: MyFavorite,
},
},
{
lazy: false,
navigatorStyle: {
statusBarTextColorScheme: 'light',
statusBarColor: '#222325',
},
navigationOptions: ({navigation}) => ({
headerTitleStyle: {
color: '#fff',
},
}),
tabBarOptions: {
style: {
backgroundColor: '#ff4865',
},
activeTintColor: '#fff',
indicatorStyle: {
backgroundColor: '#fff',
},
},
animationEnabled: true,
},
);
export default TabNavigator;
Expected Behavior
Android doesn't have a crash when I swipe.
Your Environment
| software | version |
|---|---|
| iOS or Android | Android |
| react-navigation | 4.1.0 |
| react-navigation-tabs | 2.7.0 |
| react-native-gesture-handler | 1.5.3 |
| react-native | 0.61.5 |
| node | v10.16.3 |
| npm or yarn | yarn |
Reactions are currently unavailable