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 2016-09-14 11:11:32 -07:00 committed by Facebook Github Bot 8
parent 24736d1188
commit 2cf2fdbc04

View File

@ -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;