android: make ReactInstanceManagerHolder.emitEvent return void

This commit is contained in:
Saúl Ibarra Corretgé 2019-03-12 11:54:42 +01:00
parent 45b6a8b5d5
commit 7712c6913c
1 changed files with 1 additions and 5 deletions

View File

@ -72,7 +72,7 @@ class ReactInstanceManagerHolder {
* @param eventName {@code String} containing the event name.
* @param data {@code Object} optional ancillary data for the event.
*/
static boolean emitEvent(
static void emitEvent(
String eventName,
@Nullable Object data) {
ReactInstanceManager reactInstanceManager
@ -86,12 +86,8 @@ class ReactInstanceManagerHolder {
reactContext
.getJSModule(DeviceEventManagerModule.RCTDeviceEventEmitter.class)
.emit(eventName, data);
return true;
}
}
return false;
}
/**