react-native-fence-html icon indicating copy to clipboard operation
react-native-fence-html copied to clipboard

ReactPropTypeLocations not found with react 16.0.0-alpha.4

Open arthur31416 opened this issue 8 years ago • 3 comments

When I update to react native on master and react 16.0.0-alpha.4, I get the following error:

Unable to resolve module `react/lib/ReactPropTypeLocations` from `/Users/arthur/Lendix/mobile/node_modules/react-native-fence-html/HTMLStyles.js`

A quick fix is to change the following lines in HTMLStyles.js:

// import ReactPropTypeLocations from 'react/lib/ReactPropTypeLocations'
const ReactPropTypeLocations = {} // added

I have no idea how useful this check is:

if (styleProps[key](testStyle, key, '', ReactPropTypeLocations.prop)) { 
   // ...
}

Any suggestion ?

Thanks

arthur31416 avatar Mar 24 '17 13:03 arthur31416

I've sent a pull request that fixes the issue. ReactPropTypeLocations was just a keyMirror object so I replaced the property with the corresponding string.

almost avatar Apr 12 '17 16:04 almost

I replaced those 3 lines with 2 new ones , did not work yet.

amitbravo avatar Apr 20 '17 15:04 amitbravo

@almost manually changing make sense! Thanks!)

niocncn avatar Aug 04 '17 12:08 niocncn