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)
[React Native and Expo Versions]
// Please provide reproduction steps and, if possible, code snippets.
Not able to release the app