Add onEventHandler block handler to handle all fired events.#382
Add onEventHandler block handler to handle all fired events.#382Romick2005 wants to merge 3 commits into
Conversation
|
Hello, can you explain a little bit this PR please? Thank you! |
|
All of that was done due to the issue that on slow devices the event "RNCallKeepDidLoadWithEvents" was not filled with all fired events. So in case when person A calling to Person B (app on Person B device is closed/killed) and Person B rejects the call there was no way to inform person A that call was rejected, but on native part I saw RNCallKeepPerformEndCallAction, but not on js side event not in RNCallKeepDidLoadWithEvents. So I decided to send http request directly from native code and that is why I need access the the event name and separate method to setup CallKeep. Also I moved CallKeep setup to the native part to have everything under control and to not set up it twice: I also expose all callKeep events to the publicity: |
|
Probably superseded by #394 |
|
Thanks @Romick2005 I've merged #394 instead. |
Init CallKeep on native site, not on JS.
Pass a function that will called at any call reported event. And make them public via native interface like: RNCallKeepPerformEndCallAction, RNCallKeepDidDisplayIncomingCall, ... etc