react-native-gestures
react-native-gestures copied to clipboard
Does not work with React 15 or above because of PropTypes being moved to separate package
Hi there, first of all love <3 the library, it fits perfectly for my project but I'm not able to use it because the React's PropTypes were moved to their separate package prop-types
.
I can send a PR to refactor the PropTypes part, right now I'm planning on using a fork of mine of this.
Thanks
I am getting error of Cannot react property 'array' of undefined
My code is
<View>
<GestureView
gestures={[drag, pinch]}
toStyle={(layout) => {
return {
top: layout.y,
left: layout.x,
width: layout.width,
height: layout.height,
transform: [{rotate: ${layout.rotate}deg
}]
}
}}
onError={this.onGestureError}>
<Text>HEHE</Text>
<Text>HEHE</Text>
</GestureView>
</View>