diff --git a/hooks/useHandoffListener.ios.ts b/hooks/useHandoffListener.ios.ts index 4e23454e7..2762b84af 100644 --- a/hooks/useHandoffListener.ios.ts +++ b/hooks/useHandoffListener.ios.ts @@ -13,8 +13,8 @@ interface UserActivityData { }; } -const { EventEmitter } = NativeModules; -const eventEmitter = new NativeEventEmitter(EventEmitter); +const EventEmitter = NativeModules.EventEmitter; +const eventEmitter = EventEmitter ? new NativeEventEmitter(EventEmitter) : null; const useHandoffListener = () => { const { walletsInitialized } = useStorage();