Skip to main content

I am using the latest expo 52 with latest intercom and I get this error when on the first screen that uses Intercom

 

Error while parsing method IntercomModule.loginUnidentifiedUser: Methods that return promises must accept a RCTPromiseResolveBlock followed by a RCTPromiseRejectBlock.

 

I am using the expo 52 and React Native .76

 

We call this in our main component

Intercom.loginUserWithUserAttributes({

name: user?.first_name + ' ' + user.last_name,

phone: user?.phone,

email: user?.email,

userId: user?.uuid,

});

 

We set the config in our app.config.js file like this 

```

config.plugins.push( u"@intercom/intercom-react-native",

{

"appId": process.env.INTERCOM_APP_ID,

"androidApiKey": process.env.INTERCOM_IOS_TOKEN,

"iosApiKey": process.env.INTERCOM_ANDROID_TOKEN,

"intercomRegion": "US"

}

])

 

```

 

Not sure what we may be missing

Be the first to reply!

Reply