React Native Uikit crashes when initialized
I’m trying to integrate Sendbird UIKit v3.8.6 in my React Native 0.78.0 app, but it crashes on both iOS and Android when initializing SendbirdUIKitContainer
.
iOS Crash
- Error in
FlatListInternal.tsx
- Line causing issue:
require('react-native').FlatList;
- Error Message:
requiring unknown module ‘undefined’
- Possible Cause:
It seems likerequire('react-native')
is not resolving correctly.
Android Crash
- Error in
react-native-create-thumbnail
- Line causing issue in CreateThumbnailModule.java:
import com.facebook.react.bridge.GuardedResultAsyncTask;
- Error Message:
cannot find symbol
- Possible Cause:
GuardedResultAsyncTask
was removed in React Native 0.78.0, and this dependency is not updated yet.
Steps to Reproduce
Follow the Sendbird UIKit for React Native Tutorial.
On Step 6, wrap the app in
<SendbirdUIKitContainer>
.
Run the app.
iOS crashes immediately.
Android crashes due to
react-native-create-thumbnail
.
Environment Information
- UIKit Version:
@sendbird/uikit-react-native 3.8.6
- React Native Version:
0.78.0
- Platforms Affected: iOS & Android
- Package Manager: npm / yarn
- Using MMKV for local caching?
Yes
[UIKit Version 3]
// What version of the SDK are you using?
@sendbird/uikit-react-native 3.8.6
[Frequency]
100%
[Current impact]
Blocked