question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ViewStylesPropTypes and ImageStylesPropTypes deprecated in RN 0.58

See original GitHub issue

Is 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:closed
  • Created 5 years ago
  • Reactions:9
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
fcostaprojectscommented, Jan 25, 2019

PR #201

1reaction
Exilzcommented, Feb 8, 2019

@KalebMatthews I merged this because this was blocking for too much people. I plan on restoring the backwards compatibility next week.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ViewStylesPropTypes and ImageStylesPropTypes deprecated ...
ViewStylesPropTypes and ImageStylesPropTypes deprecated in RN 0.58 #214 ... React Native 0.58.0-rc.2 has deprecated both ViewStylesPropTypes ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found