justhive / react-native-view-editor

A simple wrapper for being able to rotate, pan, and resize a child view or image with animations.
https://medium.com/@sscaff1/react-native-image-panning-zooming-832aef361c87#.dyvem0jr4
29 stars 16 forks source link

Cannot read property 'number' of undefined #25

Open DonghyunNa opened 6 years ago

DonghyunNa commented 6 years ago

Error: Requiring module "node_modules/react-native-view-editor/index.js", which threw an exception: TypeError: Cannot read property 'number' of undefined

I use react-native 0.55.0

Anyone have same problem?

kunigiriindraja commented 6 years ago

+1

netdown commented 6 years ago

In ViewEditor.js, replace the first line with the following (proptypes is now under a different package): import React, { Component } from 'react'; import PropTypes from 'prop-types';

Fixes the issue, however, this component needs more work to function well.

eshantbist commented 5 years ago

Cannot read the 'style' of undefined How to resolve this?

simulator screen shot - iphone 6 - 2018-10-30 at 15 10 08