List of usage examples for com.facebook.react.views.scroll ReactScrollViewHelper emitScrollEvent
public static void emitScrollEvent(ViewGroup scrollView, float xVelocity, float yVelocity)
From source file:com.rnnestedscrollview.ReactNestedScrollView.java
License:MIT License
@Override protected void onScrollChanged(int x, int y, int oldX, int oldY) { super.onScrollChanged(x, y, oldX, oldY); mActivelyScrolling = true;/*w ww .jav a 2s .c o m*/ if (mOnScrollDispatchHelper.onScrollChanged(x, y)) { if (mRemoveClippedSubviews) { updateClippingRect(); } ReactScrollViewHelper.emitScrollEvent(this, mOnScrollDispatchHelper.getXFlingVelocity(), mOnScrollDispatchHelper.getYFlingVelocity()); } }