Anthonyzou / react-native-image-zoom

Image pan and zoom for Android
https://www.npmjs.com/package/react-native-image-zoom
MIT License
115 stars 52 forks source link

Cannot read property 'oneOfType' of undefined #42

Open GopiKrishna10 opened 6 years ago

GopiKrishna10 commented 6 years ago

HI Guys,

Versions

"react-native-image-zoom": "^0.32.0", "react": "16.2.0", "react-native": "0.52.0",

Am Getting the Error Messages 1.Cannot read property 'oneOfType' of undefined 2.Module AppRegistry is not a registered callable module (calling runApplication).

How can I solve the Error messages.I have a View which is need to zoom in and ZOOMout Functionality for View.How can i achieve this.

aMarCruz commented 6 years ago

rn-image-zoom is trying to @Override createJSModule which is not part of RN 0.5x.x definition of ReactPackage

tmaly1980 commented 6 years ago

Actually, the problem is that this relies upon PropTypes being a part of the React package, which was moved into it's own package in React 16.

aMarCruz commented 6 years ago

@tmaly1980 right, my bad.