problem with react native gesture handler

0

Hello, I am trying to use react-native-gesture-handler the event handler Fling gesture but I get an error that does not work, this is the error that gives me

and my code is as follows

import {FlingGestureHandler, Directions, State} from 'react-native-gesture-handler';
import {AppRegistry, Dimensions, StyleSheet,TouchableOpacity,View} from 'react-native';
export default class App extends React.Component {
constructor(props){
super(props);

}

render() {
return (<View>
<FlingGestureHandler
direction={Directions.RIGHT}
onHandlerStateChange={({ nativeEvent }) => {
  if (nativeEvent.state === State.ACTIVE) {
    Alert.alert("I'm flinged!");
  }
 }}>
  <View style={{flex:1}} >
   <Text>Textoooo</Text>
  </View>
</FlingGestureHandler>

    );     }}

    
asked by Jorge E. 09.09.2018 в 20:34
source

0 answers