Skip to content
This repository has been archived by the owner on Dec 19, 2022. It is now read-only.

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

Open
hamxabaig opened this issue Apr 8, 2018 · 1 comment

Comments

@hamxabaig
Copy link

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

@ahmermunaf
Copy link

ahmermunaf commented Jul 18, 2018

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants