mirror of
https://github.com/status-im/instabug-reactnative.git
synced 2026-08-30 21:51:09 +00:00
Add new message and target ios
This commit is contained in:
@@ -354,8 +354,14 @@ module.exports = {
|
||||
Instabug.setChatNotificationEnabled(isChatNotificationEnabled);
|
||||
},
|
||||
|
||||
// On new message handler!
|
||||
|
||||
/**
|
||||
* Sets a block of code that gets executed when a new message is received.
|
||||
* @callback handler - A callback that gets executed when a new message
|
||||
* is received.
|
||||
*/
|
||||
setOnNewMessageHandler: function(handler) {
|
||||
Instabug.setOnNewMessageHandler(handler);
|
||||
},
|
||||
|
||||
/**
|
||||
* Enables/disables prompt options when SDK is invoked.
|
||||
Reference in New Issue
Block a user