React-native-navigation: 'React/RCTRootView.h' file not found after detaching from Expo

Created on 31 Dec 2017  ·  8Comments  ·  Source: wix/react-native-navigation

Issue Description

I created a new project with expo and detached it.

When I try to run the iOS project in XCode, it gives an error

'React/RCTRootView.h' file not found

If I create a new project with react-native init instead, I'm able to build with react-native-navigation successfully. Why does it fail with expo?

Steps to Reproduce / Code Snippets / Screenshots

https://github.com/James2516/expo-native-nav
Run npm install and try building the iOS project in Xcode.

Or start a new project:

  1. exp init
  2. exp detach
  3. yarn add react-native-navigation
  4. react-native-link
  5. cd ios && pod install

I have tried adding React to build target


Environment

  • React Native Navigation version: ^1.1.323
  • React Native version: expo sdk 24 / 0.51
  • Platform(s) (iOS, Android, or both?): iOS
  • Device info (Simulator/Device? OS version? Debug/Release?): Failed at XCode build
🏚 stale

All 8 comments

you can not use wix rnn on expo. please react-native init!

@quy1403 I need to use some expo libraries. You can use native libraries with Expo after detaching. See https://docs.expo.io/versions/latest/guides/detach.html

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If you believe the issue is still relevant, please test on the latest version and report back. Thank you for your contributions.

still not resolved...

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If you believe the issue is still relevant, please test on the latest version and report back. Thank you for your contributions.

The issue has been closed for inactivity.

Hi @James2516

Did you eventually fix this? If yes, how?

Didn't manage to fix it, so ended up not using this library.

Was this page helpful?
0 / 5 - 0 ratings