Skip to content

Commit

Permalink
Update ScrollView ctor's to take a ReactContext
Browse files Browse the repository at this point in the history
Reviewed By: lexs

Differential Revision: D3863966

fbshipit-source-id: 8580f65663c58552304cfd6043794eae0190757d
  • Loading branch information
astreet authored and Facebook Github Bot 8 committed Sep 14, 2016
1 parent 24736d1 commit 2cf2fdb
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

import java.lang.reflect.Field;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Rect;
Expand All @@ -25,6 +24,7 @@
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;
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 2cf2fdb

Please sign in to comment.