mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Make ReactSwipeRefreshLayout extendable (#55192)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/55192 Making `ReactSwipeRefreshLayout` open so one can subclass with a custom implementation Changelog: [Internal] Reviewed By: joevilches Differential Revision: D90789479 fbshipit-source-id: 6b8d7212140170a73e71a1eb529d8d3fffc098e3
This commit is contained in:
1 parent
30fd0c4ac8
commit
ef9bab2a15
2 files changed
+2
-2
No files matched your search
@@ -6022,7 +6022,7 @@ public abstract interface class com/facebook/react/views/scroll/VirtualView {
|
||||
public abstract fun onModeChange (Lcom/facebook/react/views/virtual/VirtualViewMode;Landroid/graphics/Rect;)V
|
||||
}
|
||||
|
||||
public final class com/facebook/react/views/swiperefresh/ReactSwipeRefreshLayout : androidx/swiperefreshlayout/widget/SwipeRefreshLayout {
|
||||
public class com/facebook/react/views/swiperefresh/ReactSwipeRefreshLayout : androidx/swiperefreshlayout/widget/SwipeRefreshLayout {
|
||||
public fun <init> (Lcom/facebook/react/bridge/ReactContext;)V
|
||||
public fun canChildScrollUp ()Z
|
||||
public fun onInterceptTouchEvent (Landroid/view/MotionEvent;)Z
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@ import com.facebook.react.uimanager.events.NativeGestureUtil
|
||||
import kotlin.math.abs
|
||||
|
||||
/** Basic extension of [SwipeRefreshLayout] with ReactNative-specific functionality. */
|
||||
public class ReactSwipeRefreshLayout(reactContext: ReactContext) :
|
||||
public open class ReactSwipeRefreshLayout(reactContext: ReactContext) :
|
||||
SwipeRefreshLayout(reactContext) {
|
||||
|
||||
private var didLayout: Boolean = false
|
||||
|
||||
Reference in new issue
Block a user