DeviceEventEmitter vs NativeAppEventEmitter

后端 未结 2 1444
误落风尘
误落风尘 2021-02-12 13:24

I want to use events to communicate between native ios/android and my react native app.

I see two ways to do this: DeviceEventEmitter and NativeAppEventEmitter, which se

2条回答
  •  暖寄归人
    2021-02-12 13:48

    Both DeviceEventEmitterand NativeAppEventEmitter are deprecated, you should use NativeEventEmitter instead.

提交回复
热议问题