Example usage for com.facebook.react.common MapBuilder of

List of usage examples for com.facebook.react.common MapBuilder of

Introduction

In this page you can find the example usage for com.facebook.react.common MapBuilder of.

Prototype

public static <K, V> Map<K, V> of(K k1, V v1, K k2, V v2) 

Source Link

Document

Returns map containing the given entries.

Usage

From source file:com.qiji.view.viewpager.ReactViewPagerManager.java

License:Open Source License

@Override
public Map getExportedCustomDirectEventTypeConstants() {
    return MapBuilder.of(PageScrollEvent.EVENT_NAME, MapBuilder.of("registrationName", "onPageScroll"),
            PageSelectedEvent.EVENT_NAME, MapBuilder.of("registrationName", "onPageSelected"));
}

From source file:com.reactnative.swiper.viewpager.ReactViewPagerManager.java

License:Open Source License

@Override
public Map<String, Integer> getCommandsMap() {
    return MapBuilder.of("setPage", COMMAND_SET_PAGE, "setPageWithoutAnimation",
            COMMAND_SET_PAGE_WITHOUT_ANIMATION);
}

From source file:com.tuniu.rnbrige.SwipeRefreshLayoutManager.java

License:Open Source License

@Nullable
@Override//w ww . jav a2s  . com
public Map<String, Object> getExportedViewConstants() {
    return MapBuilder.<String, Object>of("SIZE",
            MapBuilder.of("DEFAULT", SwipeRefreshLayout.DEFAULT, "LARGE", SwipeRefreshLayout.LARGE));
}

From source file:fr.bamlab.textinput.ReactTextInputManager.java

License:Open Source License

@Override
public @Nullable Map<String, Integer> getCommandsMap() {
    return MapBuilder.of("focusTextInput", FOCUS_TEXT_INPUT, "blurTextInput", BLUR_TEXT_INPUT);
}