Skip to content

Commit

Permalink
add params
Browse files Browse the repository at this point in the history
  • Loading branch information
evanjmg committed Feb 23, 2018
1 parent c2124d4 commit 51db6ab
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@ public RNHomePressedModule(ReactApplicationContext reactContext) {
public static final String ON_HOME_BUTTON_PRESSED = "ON_HOME_BUTTON_PRESSED";

public void onHomePressed() {
WritableMap params = Arguments.createMap();
try {
this.reactContext
.getJSModule(DeviceEventManagerModule.RCTDeviceEventEmitter.class)
.emit(ON_HOME_BUTTON_PRESSED);
.emit(ON_HOME_BUTTON_PRESSED, params);
} catch (Exception e) {
Log.e(PRESSED_ERROR, "sendEvent called before bundle loaded");
}
Expand Down

0 comments on commit 51db6ab

Please sign in to comment.