react-native-fence-html
react-native-fence-html copied to clipboard
ReactPropTypeLocations not found with react 16.0.0-alpha.4
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
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.
I replaced those 3 lines with 2 new ones , did not work yet.
@almost manually changing make sense! Thanks!)