kiddkai / react-native-gestures

Composable React Native Gestures

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Does not work with React 15 or above because of PropTypes being moved to separate package

hamxabaig opened this issue · comments

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

<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}>
HEHE
HEHE