React Native Expo - Maximum call stack size exceeded | Community
Skip to main content
Answered

React Native Expo - Maximum call stack size exceeded

  • March 26, 2026
  • 1 reply
  • 15 views

I am creating mobile app using React Native (Expo) and I would love to utilize intercom there. I am following all instructions and example repos and in the end I end up with an error..

Wherever I put the import and I do anything with Intercom object I have:
 ERROR  [RangeError: Maximum call stack size exceeded (native stack depth)] 
> 13 | import Intercom from '@intercom/intercom-react-native';
     | ^

I have my app.json configured
...

[

"@intercom/intercom-react-native",

{

"useManualInit": true

}

]


I follow all the debugging steps and in the end there is above error. 
If I import the Intercom object from @intercom/intercom-react-native dependency nothing happens until I do anything with it (console.log it or execute Intercom.initialize(...))

I am using expo 54.0.22 with react-native 0.81.5
Does anyone have an Idea what is going on?

Best answer by Jakub Kozlowski

I managed to fix it. For anyone wondering for the future

I reinstalled the package @intercom/intercom-react-native dependency using pnpm install not expo as docs suggest
 

❌ npx expo install @intercom/intercom-react-native

✅ pnpm install @intercom/intercom-react-native

1 reply

  • Author
  • New Participant
  • Answer
  • March 27, 2026

I managed to fix it. For anyone wondering for the future

I reinstalled the package @intercom/intercom-react-native dependency using pnpm install not expo as docs suggest
 

❌ npx expo install @intercom/intercom-react-native

✅ pnpm install @intercom/intercom-react-native