use of com.facebook.react.bridge.WritableMap in project react-native-push-notification by zo0r.
the class RNPushNotificationJsDelivery method notifyRemoteFetch.
void notifyRemoteFetch(Bundle bundle) {
String bundleString = convertJSON(bundle);
WritableMap params = Arguments.createMap();
params.putString("dataJSON", bundleString);
sendEvent("remoteFetch", params);
}
use of com.facebook.react.bridge.WritableMap in project react-native-push-notification by zo0r.
the class RNPushNotificationJsDelivery method notifyNotification.
void notifyNotification(Bundle bundle) {
String bundleString = convertJSON(bundle);
WritableMap params = Arguments.createMap();
params.putString("dataJSON", bundleString);
sendEvent("remoteNotificationReceived", params);
}
use of com.facebook.react.bridge.WritableMap in project react-native-push-notification by zo0r.
the class RNPushNotificationJsDelivery method notifyNotificationAction.
void notifyNotificationAction(Bundle bundle) {
String bundleString = convertJSON(bundle);
WritableMap params = Arguments.createMap();
params.putString("dataJSON", bundleString);
sendEvent("notificationActionReceived", params);
}
use of com.facebook.react.bridge.WritableMap in project react-native-push-notification by zo0r.
the class RNPushNotification method registerNotificationsRegistration.
private void registerNotificationsRegistration() {
IntentFilter intentFilter = new IntentFilter(getReactApplicationContext().getPackageName() + ".RNPushNotificationRegisteredToken");
getReactApplicationContext().registerReceiver(new BroadcastReceiver() {
@Override
public void onReceive(Context context, Intent intent) {
String token = intent.getStringExtra("token");
WritableMap params = Arguments.createMap();
params.putString("deviceToken", token);
mJsDelivery.sendEvent("remoteNotificationsRegistered", params);
}
}, intentFilter);
}
use of com.facebook.react.bridge.WritableMap in project react-native-navigation by wix.
the class TitleBarSearchButton method onQueryTextSubmit.
@Override
public boolean onQueryTextSubmit(String query) {
WritableMap arguments = Arguments.createMap();
arguments.putString("query", query);
sendEvent("searchQuerySubmit", arguments);
return false;
}
Aggregations