Fix: iOS NativeEventEmission
What's the Issue?
Addressing the issues reported in Issues: #8 and #22, '<EmittedEvent> is not a supported event type in MqttModule'
Why the Change is Needed
Example project would throw fatal error on initialization.
What Was Changed?
Updated NativeEventEmitter listeners in javascript to accept pre-specified event types and removed dynamic naming based on clientId and eventId. Updated native module code in compliance with updated event types and included clientID/eventID in event body. Updated Android event emission in accordance and in doing so migrated from the deprecated deviceEmitter to the now standard NativeEventEmitter.
Testing
Before fix:
- checkout main
- run yarn example start & yarn example ios
- Project will build but immediately encounter fatal error.
After Fix:
Repeat above steps with PR branch
合并状态:未合并 0 条评论