Im having issue with the currenct RNScreen
current react-native : 0.61.5
i think RCTImageLoader has been depreciated
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'
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"
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 I added my solution to the apps podfile and yes it's backward compatible, all it actually needed was the React-CoreModules.
Neither of the proposed solutions worked for me.
Using
react-native: 0.61.5
react-native-screens: 2.4.0
@JMV2112 please check if React is added to your scheme on xcode, if it doesn't add it, then clean build and rebuild
@BadMask121 that did it for me, thanks a lot!
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 add it to the main podfile, clean and rebuild
Hm, '../node_modules/react-native/React/CoreModules' doesn't exist for me.
How can I add it?
yarn add [email protected] works for me
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
Most helpful comment
Hm,
'../node_modules/react-native/React/CoreModules'doesn't exist for me.How can I add it?