RN 0.38.0 causes issues with createReactNativeComponentClass (again)
See original GitHub issueRN 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:
- Created 7 years ago
- Reactions:23
- Comments:7 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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 usingcreateReactNativeComponentClass
should be modified to be similar toSvg.js
?My guess is that this change won’t be backwards compatible for RN 0.37 and lower.