List of usage examples for com.facebook.react.views.scroll ScrollEventType MOMENTUM_BEGIN
ScrollEventType MOMENTUM_BEGIN
To view the source code for com.facebook.react.views.scroll ScrollEventType MOMENTUM_BEGIN.
Click Source Link
From source file:com.bottomsheetbehavior.ReactNestedScrollViewHelper.java
License:Open Source License
public static void emitScrollMomentumBeginEvent(ViewGroup scrollView) { emitScrollEvent(scrollView, ScrollEventType.MOMENTUM_BEGIN); }
From source file:com.bottomsheetbehavior.ReactNestedScrollViewManager.java
License:Open Source License
public static Map createExportedCustomDirectEventTypeConstants() { return MapBuilder.builder() .put(ScrollEventType.SCROLL.getJSEventName(), MapBuilder.of("registrationName", "onScroll")) .put(ScrollEventType.BEGIN_DRAG.getJSEventName(), MapBuilder.of("registrationName", "onScrollBeginDrag")) .put(ScrollEventType.END_DRAG.getJSEventName(), MapBuilder.of("registrationName", "onScrollEndDrag")) .put(ScrollEventType.ANIMATION_END.getJSEventName(), MapBuilder.of("registrationName", "onScrollAnimationEnd")) .put(ScrollEventType.MOMENTUM_BEGIN.getJSEventName(), MapBuilder.of("registrationName", "onMomentumScrollBegin")) .put(ScrollEventType.MOMENTUM_END.getJSEventName(), MapBuilder.of("registrationName", "onMomentumScrollEnd")) .build();// w w w .jav a2s . c o m }
From source file:com.rnnestedscrollview.ReactNestedScrollViewManager.java
License:MIT License
public static Map<String, Object> createExportedCustomDirectEventTypeConstants() { return MapBuilder.<String, Object>builder() .put(ScrollEventType.getJSEventName(ScrollEventType.SCROLL), MapBuilder.of("registrationName", "onScroll")) .put(ScrollEventType.getJSEventName(ScrollEventType.BEGIN_DRAG), MapBuilder.of("registrationName", "onScrollBeginDrag")) .put(ScrollEventType.getJSEventName(ScrollEventType.END_DRAG), MapBuilder.of("registrationName", "onScrollEndDrag")) .put(ScrollEventType.getJSEventName(ScrollEventType.MOMENTUM_BEGIN), MapBuilder.of("registrationName", "onMomentumScrollBegin")) .put(ScrollEventType.getJSEventName(ScrollEventType.MOMENTUM_END), MapBuilder.of("registrationName", "onMomentumScrollEnd")) .build();//from w ww. jav a 2 s. c o m }
From source file:com.zulipmobile.AnchorScrollViewHelper.java
License:Open Source License
public static void emitScrollMomentumBeginEvent(ViewGroup scrollView) { emitScrollEvent(scrollView, ScrollEventType.MOMENTUM_BEGIN, null, true); }