react-native-screens icon indicating copy to clipboard operation
react-native-screens copied to clipboard

RNSScreenStackHeaderConfig.m RCTImageLoader not found

Open BadMask121 opened this issue 6 years ago • 14 comments

Im having issue with the currenct RNScreen

current react-native : 0.61.5

BadMask121 avatar Jan 13 '20 12:01 BadMask121

i think RCTImageLoader has been depreciated

BadMask121 avatar Jan 13 '20 13:01 BadMask121

I fixed the issue by adding the following line to the podfile:

pod 'React-Core', :path => '../node_modules/react-native/' pod 'React-CoreModules', :path => '../node_modules/react-native/React/CoreModules'

BadMask121 avatar Jan 13 '20 16:01 BadMask121

I had similar issue and ended up adding these to Podfile:

pod 'React-CoreModules', :path => '../node_modules/react-native/React/CoreModules'
pod 'FBReactNativeSpec', :path => "../node_modules/react-native/Libraries/FBReactNativeSpec"
pod 'RCTTypeSafety', :path => "../node_modules/react-native/Libraries/TypeSafety"
pod 'ReactCommon/turbomodule/core', :path => "../node_modules/react-native/ReactCommon"
pod 'FBLazyVector', :path => "../node_modules/react-native/Libraries/FBLazyVector"
pod 'RCTRequired', :path => "../node_modules/react-native/Libraries/RCTRequired"

michal-weglarz avatar Feb 13 '20 16:02 michal-weglarz

Thanks @BadMask121 for posting your solution. Can you clarify whether you added that to the app's podfile or to the screens library podfile? If the latter do you know if the change is backward compatible with older versions of react-native?

kmagiera avatar Feb 19 '20 19:02 kmagiera

@kmagiera I added my solution to the apps podfile and yes it's backward compatible, all it actually needed was the React-CoreModules.

BadMask121 avatar Feb 19 '20 20:02 BadMask121

Neither of the proposed solutions worked for me.

Using react-native: 0.61.5 react-native-screens: 2.4.0

JMV2112 avatar Mar 24 '20 19:03 JMV2112

@JMV2112 please check if React is added to your scheme on xcode, if it doesn't add it, then clean build and rebuild

BadMask121 avatar Mar 24 '20 22:03 BadMask121

@BadMask121 that did it for me, thanks a lot!

JMV2112 avatar Mar 25 '20 20:03 JMV2112

I fixed the issue by adding the following line to the podfile:

pod 'React-Core', :path => '../node_modules/react-native/' pod 'React-CoreModules', :path => '../node_modules/react-native/React/CoreModules'

Can you please clarify in which podfile it will be added? main podfile or library pod file

muhammadashfaq avatar Nov 11 '20 12:11 muhammadashfaq

@muhammadashfaq add it to the main podfile, clean and rebuild

BadMask121 avatar Nov 11 '20 13:11 BadMask121

Hm, '../node_modules/react-native/React/CoreModules' doesn't exist for me. How can I add it?

acrabb avatar Jan 30 '21 04:01 acrabb

yarn add [email protected] works for me

cristiancedenogallego avatar Mar 16 '21 20:03 cristiancedenogallego

I had the same error:

fatal error: 'React/RCTImageLoader.h' file not found

With: react-native: 0.60.6 @react-navigation/native: 5.9.4 react-native-screens: 2.18.1

Solution was to downgrade react-native-screens to 2.11.0. Found on Stack Overflow

xavieramoros avatar May 20 '21 18:05 xavieramoros

I was setting up React-Navigation for a fresh project:

"@react-navigation/native": "^6.0.2",
"@react-navigation/native-stack": "^6.1.0",
"react": "17.0.2",
"react-native": "0.65.1",
"react-native-safe-area-context": "^3.3.0",
"react-native-screens": "^3.5.0"

And i got this error:

requireNativeComponent: "RNSScreenStackHeaderConfig" was not found in the UIManager

The solution for me was to:

stop Metro Bundle

npx react-native run-android

ilyesrd avatar Aug 20 '21 11:08 ilyesrd