Uploaded image for project: 'Realm JavaScript SDK'
  1. Realm JavaScript SDK
  2. RJS-84

Support React Native installed with CocoaPods

      Goals: adding RealmReact 1.0.2 project into XCode with pod install of react-native@0.42.0.rc-3 will not result in compilation failure.

      Expected results: success app build using RealmReact project with react-native@0.42.0.rc-3 inside XCode project.

      Actual results: compilation failure on RealmReact.mm: 'React/RCTBridgeDelegate.h' file not found in RCTBridge.h. This is most likely due to the iOS header breaking change introduced in react-native@0.40.0 where React Native headers are expected to be enclosed in angle brackets, e.g. <React/RCTBridge.h>. Previously working on react-native@0.38.0 using same app code.

      Steps to reproduce:
      directory structure: $root/app, $root/rn (app XCode project is sibling of react native directory rn)

      1. npm install react@15.4.2 react-native@0.42.0.rc-3
      2. npm install realm@1.0.2
      3. include Yoga and React in Podfile:
        target 'app' do

      use_frameworks!

      pod 'Fabric'
      pod 'Crashlytics'

      1. React libraries
        pod 'Yoga', :path => '../rn/node_modules/react-native/ReactCommon/yoga', :inhibit_warnings => true
        pod 'React', :path => '../rn/node_modules/react-native', :subspecs => [
        'Core',
        'RCTActionSheet',
        'RCTAnimation',
        'RCTImage',
        'RCTLinkingIOS',
        'RCTText',
        'RCTNetwork',
        'RCTWebSocket',
        ], :inhibit_warnings => true
      1. pod install to install Yoga and React Native
      2. add RealmReact project into XCode from ../rn/node_modules/realm/react-native/ios/RealmReact.xcodeproj
      3. compile iOS app

      Version: Realm 1.0.2 / Xcode 8.1 / OS X El Capitan 10.11.6

            Assignee:
            Unassigned Unassigned
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: