Bug Report: Shows warning with React Native 0.65
See original GitHub issuePrerequisites
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.
- Use
react-native-ble-plx
in a project using react-native v0.65+ on an Android device. - 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 required
removeListenersmethod.
- 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:
- Created 2 years ago
- Reactions:7
- Comments:5 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
+1, the same bug
Hi,
@Naturalclar thanks for reporting the issue and fixing it. Your PR has been merged! 💪