Update ScrollView ctor's to take a ReactContext

Reviewed By: lexs

Differential Revision: D3863966

fbshipit-source-id: 8580f65663c58552304cfd6043794eae0190757d
This commit is contained in:
Andy Street authored and Facebook Github Bot 8 committed 2016-09-14 11:13:52 -07:00
1 parent 24736d1188
commit 2cf2fdbc04
1 file changed
+3 -3
@@ -13,7 +13,6 @@ import javax.annotation.Nullable;
import java.lang.reflect.Field;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Rect;
@@ -25,6 +24,7 @@ import android.view.View;
import android.widget.OverScroller;
import android.widget.ScrollView;
import com.facebook.react.bridge.ReactContext;
import com.facebook.react.common.ReactConstants;
import com.facebook.react.uimanager.MeasureSpecAssertions;
import com.facebook.react.uimanager.events.NativeGestureUtil;
@@ -59,11 +59,11 @@ public class ReactScrollView extends ScrollView implements ReactClippingViewGrou
private @Nullable Drawable mEndBackground;
private int mEndFillColor = Color.TRANSPARENT;
public ReactScrollView(Context context) {
public ReactScrollView(ReactContext context) {
this(context, null);
}
public ReactScrollView(Context context, @Nullable FpsListener fpsListener) {
public ReactScrollView(ReactContext context, @Nullable FpsListener fpsListener) {
super(context);
mFpsListener = fpsListener;