question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bug Report: Shows warning with React Native 0.65

See original GitHub issue

Prerequisites

Please answer the following questions for yourself before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.

  • I am running the latest version
  • I checked the documentation and found no answer
  • I checked to make sure that this issue has not already been filed

Expected Behavior

Please describe the behavior you are expecting

Calling new BleManager in react-native 0.65 will not show any warning

Current Behavior

What is the current behavior?

Calling new BleManager in react-native 0.65 shows the following warning

new NativeEventEmitter()` was called with a non-null argument without the required `removeListeners` method

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  1. Use react-native-ble-plx in a project using react-native v0.65+ on an Android device.
  2. Run new BleManager()

Context

Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions. Both JS and platform logs can be enabled via setLogLevel function call.

  • Library version: 2.0.2
  • Platform: Android.
  • Platform logs (logcat/XCode):
  • JS logs: ``new NativeEventEmitter()was called with a non-null argument without the requiredremoveListeners method.
  • Contents of the package.json file: “react-native”: “0.65.1”, “react-native-ble-plx”: “^2.0.2”
  • Formatted code sample or link to a repository:
const ble = new BleManager();

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:7
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
askiecommented, Nov 25, 2021

+1, the same bug

1reaction
mciechanowiczcommented, Dec 7, 2021

Hi,

@Naturalclar thanks for reporting the issue and fixing it. Your PR has been merged! 💪

Read more comments on GitHub >

github_iconTop Results From Across the Web

[ ] RN 0.65 compatibility coming with react-native-firebase ...
Issue. Hello, the react-native 0.65.0 is showing a warning because of this library with the message: " new NativeEventEmitter() was called ...
Read more >
React native app crash without error log ,How to detect a bug?
Now run adb logcat : This command will output all logs (debug and error levels) coming from your Android Device. Install your application...
Read more >
14 posts tagged with "release" - React Native
Today we are announcing the 0.68.0 release of React Native, with opt-in to the New React Native Architecture, bug fixes and more.
Read more >
new nativeeventemitter() was called with a non-null argument ...
EVENT_TYPE.RECEIVED_NEW_MESSAGE, receivedNewMessage ); ``` it will always give me the warning, new NativeEventEmitter()` was called with a non-null argument ...
Read more >
instabug-reactnative | Yarn - Package Manager
Instabug is an in-app feedback and bug reporting tool for mobile apps. With just a simple shake, your users or beta testers can...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found