-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Description
now, in react-native throw error:
`
Unhandled JS Exception: TypeError: window.addEventListener is not a function. (In 'window.addEventListener('visibilitychange', revalidate, false)', 'window.addEventListener' is undefined)
RCTFatal
-[RCTExceptionsManager reportFatalException:stack:exceptionId:]
invoking_
-[NSInvocation invoke]
-[NSInvocation invokeWithTarget:]
-[RCTModuleMethod invokeWithBridge:module:arguments:]
facebook::react::invokeInner(RCTBridge*, RCTModuleData*, unsigned int, folly::dynamic const&)
facebook::react::RCTNativeModule::invoke(unsigned int, folly::dynamic&&, int)::$_0::operator()() const
invocation function for block in facebook::react::RCTNativeModule::invoke(unsigned int, folly::dynamic&&, int)
_dispatch_call_block_and_release
_dispatch_client_callout
_dispatch_lane_serial_drain
_dispatch_lane_invoke
_dispatch_workloop_worker_thread
_pthread_wqthread
start_wqthread
`