We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d5044c5 commit 08af4f0Copy full SHA for 08af4f0
packages/uikit-react-native/src/SendbirdUIKitContainer.tsx
@@ -99,7 +99,7 @@ const SendbirdUIKitContainer = ({
99
sdk.addExtension('device-os-platform', SendbirdUIKit.PLATFORM);
100
}
101
102
- if (NetInfo.addEventListener) {
+ if (NetInfo?.addEventListener) {
103
const listener = (callback: () => void, callbackType: 'online' | 'offline') => {
104
const unsubscribe = NetInfo.addEventListener((state) => {
105
const online = Boolean(state.isConnected) || Boolean(state.isInternetReachable);
0 commit comments