Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WARN new NativeEventEmitter() was called with a non-null argument without the required addListener method. WARN new NativeEventEmitter() was called with a non-null argument without the required removeListeners method. #1628

Open
nandkishorakangire opened this issue Mar 22, 2024 · 0 comments

Comments

@nandkishorakangire
Copy link

nandkishorakangire commented Mar 22, 2024

Describe the bug
Getting these warnings when used @stripe/stripe-react-native package methods

import { StripeProvider, useStripe } from "@stripe/stripe-react-native";
 WARN  `new NativeEventEmitter()` was called with a non-null argument without the required `addListener` method.
 WARN  `new NativeEventEmitter()` was called with a non-null argument without the required `removeListeners` method.

To Reproduce
Steps to reproduce the behavior:

  1. import the @stripe/stripe-react-native package methods
  2. you'll get the error warning

Expected behavior
Above annoying warning should not pop up, with proper error handling

Screenshots
image

Smartphone (please complete the following information):

  • Device: Android 13
  • OS: Android
  • Browser: N/A
  • Version: 13.x

Additional context
npx react-native info:
System:
OS: Windows 10 10.0.22621
CPU: (8) x64 Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz
Memory: 3.94 GB / 15.84 GB
Binaries:
Node: 18.17.0 - C:\Program Files\nodejs\node.EXE
Yarn: Not Found
npm: 9.6.7 - C:\Program Files\nodejs\npm.CMD
Watchman: Not Found
SDKs:
Android SDK: Not Found
Windows SDK: Not Found
IDEs:
Android Studio: AI-223.8836.35.2231.10406996
Visual Studio: 17.8.34316.72 (Visual Studio Community 2022)
Languages:
Java: 16.0.2
npmPackages:
@react-native-community/cli: Not Found
react: 18.1.0 => 18.1.0
react-native: 0.70.8 => 0.70.8
react-native-windows: Not Found
npmGlobalPackages:
react-native: Not Found

Expo SDK: ~47.0.14
@stripe/stripe-react-native: 0.19.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant