mirror of
https://github.com/status-im/react-native.git
synced 2025-02-05 14:13:26 +00:00
Update ScrollView ctor's to take a ReactContext
Reviewed By: lexs Differential Revision: D3863966 fbshipit-source-id: 8580f65663c58552304cfd6043794eae0190757d
This commit is contained in:
parent
24736d1188
commit
2cf2fdbc04
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user