ViewStylesPropTypes and ImageStylesPropTypes deprecated in RN 0.58
See original GitHub issueIs this a bug report or a feature request?
Bug report
Have you read the guidelines regarding bug report?
Yes
Have you read the documentation in its entirety?
Yes
Have you made sure that your issue hasn’t already been reported/solved?
Yes
Is the bug specific to iOS or Android? Or can it be reproduced on both platforms?
N/A
Is the bug reproductible in a production environment (not a debug one)?
Yes
Have you been able to reproduce the bug in the provided example?
No
Environment
Environment: “react”: “16.6.3”, “react-native”: “0.58.0-rc.2”, “react-native-render-html”: “^3.10.0”
Target Platform: N/A
Steps to Reproduce
react-native-render-html makes the app fail at runtime because it cannot find imports ViewStylesPropTypes nor ImageStylesPropTypes (in HTMLUtils.js).
React Native 0.58.0-rc.2 has deprecated both ViewStylesPropTypes and ImageStylesPropTypes, but they can still be used importing like so in HTMLUtils.js:
import ViewStylesPropTypes from ‘react-native/Libraries/DeprecatedPropTypes/DeprecatedViewStylePropTypes’; import ImageStylesPropTypes from ‘react-native/Libraries/DeprecatedPropTypes/DeprecatedImageStylePropTypes’;
Expected Behavior
App should work with React Native 0.58.0
Actual Behavior
error: bundling failed: Error: Unable to resolve module react-native/Libraries/Image/ImageStylePropTypes
from /home/xipgroc/workspace/XipgrocApp/node_modules/react-native-render-html/src/HTMLUtils.js
: Module react-native/Libraries/Image/ImageStylePropTypes
does not exist in the Haste module map
Issue Analytics
- State:
- Created 5 years ago
- Reactions:9
- Comments:6 (3 by maintainers)
Top GitHub Comments
PR #201
@KalebMatthews I merged this because this was blocking for too much people. I plan on restoring the backwards compatibility next week.