You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
On new react-native versions (i.e on 0.73) we're getting an error about the android module not containing an addListener and an removeListeners method.
This causes issues in our app, so I'm opening a PR to fix it.
To Reproduce
Steps to reproduce the behavior:
Upgrade to react-native 0.73.5
Use useListener (@stripe/stripe-terminal-react-native/src/hooks/useListener.ts)
See the logs and notice the following 2 errors:
E | ReactNativeJS ▶︎ `new NativeEventEmitter()` was called with a non-null argument without the required `addListener` method.
E | ReactNativeJS ▶︎ `new NativeEventEmitter()` was called with a non-null argument without the required `removeListeners` method.
Expected behavior
Those errors should not be there
Stripe Terminal React Native SDK version 0.0.1-beta.14
Smartphone (please complete the following information):
Android Emulator
Device: [e.g. iPhone6] Pixel 3a emulator
OS: [e.g. iOS8.1] Android 13.0
The text was updated successfully, but these errors were encountered:
Describe the bug
On new react-native versions (i.e on 0.73) we're getting an error about the android module not containing an
addListener
and anremoveListeners
method.This causes issues in our app, so I'm opening a PR to fix it.
To Reproduce
Steps to reproduce the behavior:
useListener
(@stripe/stripe-terminal-react-native/src/hooks/useListener.ts)Expected behavior
Those errors should not be there
Stripe Terminal React Native SDK version
0.0.1-beta.14
Smartphone (please complete the following information):
Android Emulator
The text was updated successfully, but these errors were encountered: