diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollView.java b/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollView.java index 58afb66e335fb2..cae6588f2a3be5 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollView.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollView.java @@ -14,6 +14,7 @@ import android.graphics.Rect; import android.graphics.drawable.ColorDrawable; import android.graphics.drawable.Drawable; +import android.support.v4.view.ViewCompat; import android.util.Log; import android.view.MotionEvent; import android.view.View; @@ -269,7 +270,7 @@ public void fling(int velocityY) { 0, scrollWindowHeight / 2); - postInvalidateOnAnimation(); + ViewCompat.postInvalidateOnAnimation(this); // END FB SCROLLVIEW CHANGE } else { @@ -289,11 +290,14 @@ public void run() { ReactScrollViewHelper.emitScrollMomentumEndEvent(ReactScrollView.this); } else { mDoneFlinging = true; - ReactScrollView.this.postOnAnimationDelayed(this, ReactScrollViewHelper.MOMENTUM_DELAY); + ViewCompat.postOnAnimationDelayed( + ReactScrollView.this, + this, + ReactScrollViewHelper.MOMENTUM_DELAY); } } }; - postOnAnimationDelayed(r, ReactScrollViewHelper.MOMENTUM_DELAY); + ViewCompat.postOnAnimationDelayed(this, r, ReactScrollViewHelper.MOMENTUM_DELAY); } }