Giter Club home page Giter Club logo

Comments (39)

petromoldovan avatar petromoldovan commented on July 29, 2024 9

sorry guys,

has nothing to do with the package. The xcode was misconfigured.

I am closing the issue

from react-native-intercom.

eduardoleal avatar eduardoleal commented on July 29, 2024 4

Anyone who have succeeded installing on React Native >= 44?

from react-native-intercom.

mmckinley8 avatar mmckinley8 commented on July 29, 2024 3

screen shot 2017-01-31 at 4 54 52 pm

same result after update @browniefed

from react-native-intercom.

eduardoleal avatar eduardoleal commented on July 29, 2024 2

I solved my problem by adding the following entries to Intercom Build Target > header search paths:

../../../ios/Pods/Headers/Public
../../../ios/Pods/Headers/Public/React (recursive)

screen shot 2017-08-04 at 10 46 09

from react-native-intercom.

lelandrichardson avatar lelandrichardson commented on July 29, 2024 1

I think the fix is to import headers like:

// import RCTEventEmitter.h
#if __has_include("RCTEventEmitter.h")
#import "RCTEventEmitter.h"
#elif __has_include(<React/RCTEventEmitter.h>)
#import <React/RCTEventEmitter.h>
#else
#import "React/RCTEventEmitter.h"
#endif

Otherwise, i'm not sure it's possible to remain backwards compatible with older version of React, and also support CocoaPods :/

from react-native-intercom.

dinodsaurus avatar dinodsaurus commented on July 29, 2024 1

I have run into the same issue as @mmckinley8 today, are there any news how to fix it?
Im using [email protected] and [email protected]

Basically it says that RCTBridgeModue.h is not found and also that RCTEventEmitter.h is missing.

from react-native-intercom.

leimonio avatar leimonio commented on July 29, 2024 1

This issue is still happening:
"react-native": "0.45.1"
"react-native-intercom": "6.2.0"

Installation guide is not correct!

from react-native-intercom.

maartenvandillen avatar maartenvandillen commented on July 29, 2024 1

@StefanoCremona I can't remember. I have since then changed the way Intercom is integrated into the project. I am now using

pod 'Intercom', '> 3'

successfully instead

from react-native-intercom.

mmckinley8 avatar mmckinley8 commented on July 29, 2024

How did you resolve this @petromoldovan? I am facing the same issue

from react-native-intercom.

browniefed avatar browniefed commented on July 29, 2024

This may have been due to some recent changes in removing some of the header paths from the library. I will get a potential fix out for this later.

from react-native-intercom.

mmckinley8 avatar mmckinley8 commented on July 29, 2024

thanks @browniefed. Do you know of a timeline, or even better, can you provide the potential fix?

from react-native-intercom.

browniefed avatar browniefed commented on July 29, 2024

v5.3 has been published with the paths added back and compatibility with react-native .40 and before.
The previous version would only support .40

from react-native-intercom.

browniefed avatar browniefed commented on July 29, 2024

@mmckinley8

from react-native-intercom.

mmckinley8 avatar mmckinley8 commented on July 29, 2024

@browniefed terrific! I'll let you know if I have issues...I figured it was something related to 0.40.0 because of the new import syntax for iOS - reason I have not upgraded yet

from react-native-intercom.

browniefed avatar browniefed commented on July 29, 2024

Sorry, I'm not sure then. Maybe @petromoldovan can clarify.

I'm guessing it's a header search path issue.

from react-native-intercom.

browniefed avatar browniefed commented on July 29, 2024

I may also recommend install older versions. If you can find where the error occurs I can narrow it down.

from react-native-intercom.

petromoldovan avatar petromoldovan commented on July 29, 2024

@browniefed @mmckinley8 I am on RN 0.40.0.

the way I "solved" it was to start over. When installing the package I followed so many advices from different sources that I misconfigured something in the xcode. It would not build. So I pulled a project again and gave it fresh start in xcode.

I made it work like this:

1. npm install react-native-intercom --save
2. react-native link
3. Setup manually libs
https://github.com/intercom/intercom-ios
Add run Script like this:
http://runscriptbuildphase.com/

4. Add config
IOS
Add in AppDelegate.m

#import "Intercom/intercom.h"

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    [Intercom setApiKey:@"YOUR_KEY" forAppId:@"YOU_APP_ID"];
}

5. Render

var Intercom = require('react-native-intercom');
Intercom.registerIdentifiedUser({ userId: 'bob' });
Intercom.displayMessageComposer();

hope this helps!

from react-native-intercom.

mmckinley8 avatar mmckinley8 commented on July 29, 2024

I created a fresh react-native project using 0.40.0, and still received errors when compiling iOS. I have already successfully integrated android. I am receiving the same error referenced in #58 but for iOS. I also attempted @petromoldovan steps, but no luck :(. @browniefed I have seen the updates and appreciate the effort. I will reattempt once RN 0.41.0 is released.

from react-native-intercom.

browniefed avatar browniefed commented on July 29, 2024

@mmckinley8 can you step backwards in version and find out if there is a version that works for you?

from react-native-intercom.

mmckinley8 avatar mmckinley8 commented on July 29, 2024

@browniefed I went all the way back to 4.1, this resulted in errors also. I believe it was a React dependency issue for 4.1. I also tried 4.2, 4.4, and 5.1.

from react-native-intercom.

browniefed avatar browniefed commented on July 29, 2024

I'll do my best to get something work and if I do I can record a screencast and let you know. Sorry, I'm just not sure what your issues are

from react-native-intercom.

mmckinley8 avatar mmckinley8 commented on July 29, 2024

No worries at all. Appreciate the responsiveness and effort.

from react-native-intercom.

browniefed avatar browniefed commented on July 29, 2024

Seeing similar issues here lottie-react-native/lottie-react-native#20

from react-native-intercom.

browniefed avatar browniefed commented on July 29, 2024

Ahhhhh I see, it's a potential cocoapods issue.

Thanks @lelandrichardson (totally forgot when linking to other topics it shows up on that thread haha)

from react-native-intercom.

parkerproject avatar parkerproject commented on July 29, 2024

@lelandrichardson I have tried your solution but still doesn't work. I'm on [email protected]
I'still getting the RCTEventEmitter not found error

from react-native-intercom.

parkerproject avatar parkerproject commented on July 29, 2024

I also tried
#if __has_include(<React/RCTAssert.h>) #import <React/RCTEventEmitter.h> #else // back compatibility for RN version < 0.40 #import "RCTEventEmitter.h" #endif

from react-native-intercom.

lelandrichardson avatar lelandrichardson commented on July 29, 2024

looking at my original comment, I think the ordering i typically use now is:

#if __has_include(<React/RCTBridgeModule.h>)
#import <React/RCTBridgeModule.h>
#elif __has_include("RCTBridgeModule.h")
#import "RCTBridgeModule.h"
#else
#import "React/RCTBridgeModule.h"
#endif

I'm not sure if that will make any difference for you or not...

from react-native-intercom.

browniefed avatar browniefed commented on July 29, 2024

from react-native-intercom.

afilp avatar afilp commented on July 29, 2024

I have similar problems.

"react-native": "0.44.2 ",
"react-native-intercom": "5.7.0", // use old one due to the other problem with Android SDK APIs version

Any ideas what we should do?

At first, I had manual installation and the "strip-frameworks" script failed (non-existed)
Then I added these in the podfile and updated:
pod 'Intercom'
pod 'react-native-intercom', :path => '../node_modules/react-native-intercom'

So, now, after the pod logic, I have the 'React/RCTEventEmitter.h' file not found issue.

from react-native-intercom.

petromoldovan avatar petromoldovan commented on July 29, 2024

@kwnccc try starting a new RN project and follow my instruction. I checked it few times already. It must be working.

from react-native-intercom.

eduardoleal avatar eduardoleal commented on July 29, 2024

Happening here too

[email protected]
[email protected]

It's working (without notifications) on Android but not on iOS.

from react-native-intercom.

BenjaminG avatar BenjaminG commented on July 29, 2024

Unable to build with [email protected] and [email protected]...

from react-native-intercom.

syzer avatar syzer commented on July 29, 2024

👍

from react-native-intercom.

cauboy avatar cauboy commented on July 29, 2024

👍

from react-native-intercom.

afilp avatar afilp commented on July 29, 2024

I am having the same issue, how can this be solved?

from react-native-intercom.

jamesjara avatar jamesjara commented on July 29, 2024

Same

from react-native-intercom.

maartenvandillen avatar maartenvandillen commented on July 29, 2024

I got it working, it looks like it was unable to find all needed React headers from the include dir

from react-native-intercom.

StefanoCremona avatar StefanoCremona commented on July 29, 2024

@maartenvandillen what did you add to you header search path to get it work?
Thank you

from react-native-intercom.

rashidul-hasan avatar rashidul-hasan commented on July 29, 2024

Anyone tried it with RN 0.61.5 & react-native-intercom 16.0.0? I'm stuck with this same error for 3 days.

from react-native-intercom.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.