React-native-screens: RCTImageLoader.h not found error (IOS) RN0.60.6

Created on 30 Oct 2020  路  4Comments  路  Source: software-mansion/react-native-screens

Current Behavior

Build error in XCode. RCTImageLoader.h not found.
See image:
https://i.stack.imgur.com/49P3q.png

Expected Behavior
No build error.

How to reproduce

Create a react native project with v0.60.6
Add react-navigation v4
Add dependencies by following tutorial.
Add AppContainer and StackNavigator.
Build project in Xcode.

Example minimal repo: https://github.com/joshua-augustinus/react-navigation-training

Your Environment

software | version
-- | --
iOS or Android | IOS 14.1
react-navigation | 4.4.3
react-navigation-stack | 2.9.0
react-navigation-tabs | N/A
react-navigation-drawer | N/A
react-native-reanimated | 1.13.1
react-native-gesture-handler | 1.8.0
react-native-safe-area-context | 3.1.8
react-native-screens | 2.12.0
react-native | 0.60.6
node | 12.9.0
yarn | 1.22.10

Most helpful comment

A workaround that worked for me was to downgrade react-native-screens to v2.11.0. Seems like something in the latest version (v2.12.0) changed something that caused this issue for react-native v0.60.x.


My app environment:

  • react-native: 0.60.2
  • iOS: 14.1

All 4 comments

I have tested the solution from here:
https://github.com/software-mansion/react-native-screens/issues/281#issuecomment-585859427

but it doesn't seem to work with react native 0.60.6.

When I change the podfile with the solution I get the error:

[!] No podspec found for `React-CoreModules` in `../node_modules/react-native/React/CoreModules`

A workaround that worked for me was to downgrade react-native-screens to v2.11.0. Seems like something in the latest version (v2.12.0) changed something that caused this issue for react-native v0.60.x.


My app environment:

  • react-native: 0.60.2
  • iOS: 14.1

Thanks @fdwcomune it worked after I downgraded.

Downgrading to 2.11.0 fixed it for me too. The docs need to be updated to reflect that react native 0.60.x does not work with react-native-screens v 2.12.x.

Was this page helpful?
0 / 5 - 0 ratings