Skip to content
This repository was archived by the owner on Nov 25, 2025. It is now read-only.
This repository was archived by the owner on Nov 25, 2025. It is now read-only.

new NativeEventEmitter() was called with a non-null argument without the required addListener method #41

@wangzhi17

Description

@wangzhi17

描述 / Description

我使用的是11.5.2-0.0.8版本,在js端监听鸿蒙原生上的事件,会提示new NativeEventEmitter() was called with a non-null argument without the required addListener method,我查看了您的源码,在BleTurboModule.ts中发送事件到js上,鸿蒙原生和js上都没有添加addListener和removeListeners方法

复现步骤 / Steps to reproduce

1、集成改库到react native项目中
2、监听蓝牙的3个事件方法
3、查看调试服务器上的提示

库版本 / Library version

11.5.2-0.0.8

React Native OpenHarmony version

0.72.38-3

构建类型 / Build type

None

设备 / Device

None

设备版本 / Device model

No response

已悉知 / Acknowledgements

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions