[Problem/Question]
I have integrated the react native sendbird ui kit in my Expo app and it’s working fine in Debug mode.
In Release mode the app keeps crashing as soon as it launches, as though sendbird ui kit initialization is throwing an error. This is the error stack trace -
TypeError: undefined is not a function
at anonymous(node_modules/@sendbird/uikit-react-native/src/contexts/PlatformServiceCtx.tsx:34:null)
at eventListener(node_modules/@sendbird/uikit-utils/src/hooks/react-native.ts:39:null)
at anonymous(node_modules/react-native/Libraries/AppState/AppState.js:105:null)
at apply(native)
at emit(node_modules/react-native/Libraries/vendor/emitter/EventEmitter.js:115:null)
at apply(native)
at __callFunction(node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:428:null)
at anonymous(node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:113:method)
// If problem, please fill out the below. If question, please delete.
[UIKit Version]
├─ @sendbird/uikit-react-native-foundation@3.2.0
└─ @sendbird/uikit-react-native@3.2.0
[React Native and Expo Versions]
react-native@0.72.6
expo@49.0.16
[Reproduction Steps]
// Please provide reproduction steps and, if possible, code snippets.
[Frequency]
Every time
[Current impact]
Not able to release the app