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.

RN 0.38.0 causes issues with createReactNativeComponentClass (again)

See original GitHub issue

RN 0.38.0 has a peer-dependancy of react@~15.4.0-rc.4 which removes createReactNativeComponentClass from react/lib/createReactNativeComponentClass

Not sure if this is the correct fix but I solved by updating references to react-native/Libraries/Renderer/src/renderers/native/createReactNativeComponentClass

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:23
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
kelsetcommented, Nov 24, 2016

Thanks for the workaround @rogchap. It took me a bit to clearly understand how to implement it, so for the noobs like me, basically it means to go in /node_modules/react-native-svg/elements and in all the *.js files where the line:

import createReactNativeComponentClass from 'react/lib/createReactNativeComponentClass';

is presented substitute it with:

import createReactNativeComponentClass from 'react-native/Libraries/Renderer/src/renderers/native/createReactNativeComponentClass';

That said, @farwayer with using requireNativeComponent() you mean that all the elements using createReactNativeComponentClass should be modified to be similar to Svg.js?

0reactions
AlbertBrandcommented, Nov 26, 2016

My guess is that this change won’t be backwards compatible for RN 0.37 and lower.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues - GitHub
Hi all, I'm currently using "native-base": "^2.2.1" and "react-native": "^0.44.3" and I get an error saying Unable to resolve module ...
Read more >
weixin_39788703的博客_CSDN博客-领域博主
2021-01-12. API Proposal - Client Interceptors. 2021-01-12. RN 0.38.0 causes issues with createReactNativeComponentClass (again). 2021-01-12 ...
Read more >
react-native-svg-uri from vault-development - Coder Social
This was tested with RN 0.33 and react-native-svg 4.3.1 (depends on this library) react-native-svg ... Issues with createReactNativeComponentClass (again).
Read more >
https://patch-diff.githubusercontent.com/raw/faceb...
However after further review of the fetch polyfill and the way Blobs work in RN, I noticed a major issue that causes blobs...
Read more >
react-native - [Workarounds] Packager unable to resolve ...
There are various issues scattered around the repo related to this issue. ... Unable to resolve module createReactNativeComponentClass from ...
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