vault-development / react-native-svg-uri

Render SVG images in React Native from an URL or static file
849 stars 334 forks source link

PropTypes: 'object' of undefined #87

Open cynthiahenaff opened 6 years ago

cynthiahenaff commented 6 years ago

With new versions of React-native, PropTypes object is not in React but is in prop-types.

It has been already patched in this commit: https://github.com/matc4/react-native-svg-uri/commit/9d127da3f22de870f6afceddfe4f11215af75c28

Unfortunately, there isn't new release published since then. It would be great to publish a new release to avoid the following bug:

capture d ecran 2017-11-10 a 18 05 08

prscX commented 6 years ago

HI @matc4

Can you please publish latest release v1.2.0 on NPM. We are getting v1.1.0 as the latest release

Thanks Pranav

ramey502 commented 6 years ago

Now, there is not propTypes in this React, it's already in the 'prop-types'. you can change to "# import PropTypes from 'prop-types' ".