# Sendbird with React Native doesn't work at all

**URL:** <https://community.sendbird.com/t/sendbird-with-react-native-doesnt-work-at-all/9221>\
**Category:** React Native\
**Created:** [March 19, 2024, 7:37pm UTC](https://community.sendbird.com/t/sendbird-with-react-native-doesnt-work-at-all/9221 "2024-03-19T19:37:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bartzalewski](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/bartzalewski/32/5026_2.png) [@bartzalewski](https://community.sendbird.com/u/bartzalewski)\
**Post date:** [March 19, 2024, 7:37pm UTC](https://community.sendbird.com/t/sendbird-with-react-native-doesnt-work-at-all/9221/1 "2024-03-19T19:37:25Z")

</div>

**[Problem/Question]**  
Sendbird with React Native doesn’t work at all

* * *

// If problem, please fill out the below. If question, please delete.  
**[UIKit Version]**  
`^3.4.2`

**[Reproduction Steps]**  
I tried locally the following step-by-step Sendbird with React Native tutorial:

> **[Send your first message | Chat React Native SDK | Sendbird Docs](https://sendbird.com/docs/chat/uikit/v3/react-native/introduction/send-first-message)**
>
> Guides for quick and easy integration of Sendbird Chat, Calls and Desk for iOS, Android, JavaScript, Unity, .NET and Platform API.

1st result (when running `npx pod-install`):

```auto
[!] The following Swift pods cannot yet be integrated as static libraries:

The Swift pod `FirebaseCoreInternal` depends upon `GoogleUtilities`, which does not define modules. To opt into those targets generating module maps (which is necessary to import them from Swift when building as static libraries), you may set `use_modular_headers!` globally in your Podfile, or specify `:modular_headers => true` for particular dependencies.
Couldn't install Pods. Updating the Pods project and trying again...
Command `pod install` failed.
└─ Cause: The following Swift pods cannot yet be integrated as static libraries:

The Swift pod `FirebaseCoreInternal` depends upon `GoogleUtilities`, which does not define modules. To opt into those targets generating module maps (which is necessary to import them from Swift when building as static libraries), you may set `use_modular_headers!` globally in your Podfile, or specify `:modular_headers => true` for particular dependencies.

pod install --repo-update --ansi exited with non-zero code: 1

```

So I added the `use_modular_headers!` on the top of my Podfile, and then:

2nd result:

```auto
ERROR Error: No Firebase App '[DEFAULT]' has been created - call firebase.initializeApp(), js engine: hermes

ERROR Invariant Violation: "ChatApp" has not been registered. This can happen if:
* Metro (the local dev server) is run from the wrong folder. Check if Metro is running, stop it and restart it in the current project.
* A module failed to load due to an error and `AppRegistry.registerComponent` wasn't called., js engine: hermes

```

I get the same errors when trying the `sendbird-uikit-react-native` sample repo:  
Same issue when trying the sample:

- [sendbird-uikit-react-native/sample at main · sendbird/sendbird-uikit-react-native · GitHub](https://github.com/sendbird/sendbird-uikit-react-native/tree/main/sample)

I tried different react-native versions, downgrading all packages, different Android SDK versions, Node.js versions, and code implementations - nothing works in React Native for me.

When I remove the `<SendbirdUIKitContainer appId={'APP_ID'} />...` wrapper the app works fine, no errors (obviously without any Sendbird integration).

Am I the only one that can’t get the doc tutorial working?

---

<div class="post-metadata">

**Author:** ![Knekte](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/knekte/32/5066_2.png) [@Knekte](https://community.sendbird.com/u/Knekte)\
**Post date:** [March 31, 2024, 12:21pm UTC](https://community.sendbird.com/t/sendbird-with-react-native-doesnt-work-at-all/9221/2 "2024-03-31T12:21:18Z")

</div>

@bartzalewski did you find a solution? I am having the same error and I can’t seem to get past it - the closest i have come is initializing firebase in my [//sendbirdPlatformServices.js](https://sendbirdPlatformServices.js) but then the error becomes ERROR Invariant Violation: `new NativeEventEmitter()` requires a non-null argument., js engine: hermes
