use of com.facebook.react.bridge.WritableMap in project react-native-navigation by wix.
the class TitleBarSearchButton method onQueryTextChange.
@Override
public boolean onQueryTextChange(String newText) {
WritableMap arguments = Arguments.createMap();
arguments.putString("query", newText);
sendEvent("searchQueryChange", arguments);
return false;
}
use of com.facebook.react.bridge.WritableMap in project react-native-navigation by wix.
the class OrientationHelper method onConfigurationChanged.
public static void onConfigurationChanged(Configuration newConfig) {
WritableMap params = Arguments.createMap();
params.putString("orientation", Orientation.fromConfigurationCode(newConfig.orientation));
NavigationApplication.instance.getEventEmitter().sendNavigatorEvent("orientationChanged", params);
}
use of com.facebook.react.bridge.WritableMap in project react-native-navigation by wix.
the class EventEmitter method sendGlobalScreenChangedEvent.
private void sendGlobalScreenChangedEvent(String eventId, double timestamp, String screenId, NavigationType type) {
WritableMap map = Arguments.createMap();
map.putDouble("startTime", timestamp);
map.putDouble("endTime", System.currentTimeMillis());
map.putString("screen", screenId);
map.putString("commandType", String.valueOf(type));
sendNavigatorEvent(eventId, map);
}
use of com.facebook.react.bridge.WritableMap in project react-native-navigation by wix.
the class BottomTabsLayout method createTabSelectedEventData.
private WritableMap createTabSelectedEventData(int selectedTabIndex, int unselectedTabIndex) {
WritableMap data = Arguments.createMap();
data.putInt("selectedTabIndex", selectedTabIndex);
data.putInt("unselectedTabIndex", unselectedTabIndex);
return data;
}
use of com.facebook.react.bridge.WritableMap in project react-native-navigation by wix.
the class BottomTabsLayout method sendTabReselectedEventToJs.
private void sendTabReselectedEventToJs() {
WritableMap data = Arguments.createMap();
String navigatorEventId = getCurrentScreenStack().peek().getNavigatorEventId();
NavigationApplication.instance.getEventEmitter().sendNavigatorEvent("bottomTabReselected", navigatorEventId, data);
}
Aggregations