diff --git a/Libraries/Components/RefreshControl/AndroidSwipeRefreshLayoutNativeComponent.js b/Libraries/Components/RefreshControl/AndroidSwipeRefreshLayoutNativeComponent.js index 9bd3600eb31..48d6ee0ddd7 100644 --- a/Libraries/Components/RefreshControl/AndroidSwipeRefreshLayoutNativeComponent.js +++ b/Libraries/Components/RefreshControl/AndroidSwipeRefreshLayoutNativeComponent.js @@ -42,16 +42,8 @@ type NativeProps = $ReadOnly<{| progressBackgroundColor?: ?ColorValue, /** * Size of the refresh indicator, see RefreshControl.SIZE. - * - * This type isn't currently accurate. It really is specific numbers - * hard coded in the Android platform. - * - * Also, 1 isn't actually a safe default. We are able to set this here - * because native code isn't currently consuming the generated artifact. - * This will end up being - * size?: WithDefault<'default' | 'large', 'default'>, */ - size?: WithDefault, + size?: WithDefault<'default' | 'large', 'default'>, /** * Progress view top offset */ diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/swiperefresh/SwipeRefreshLayoutManager.java b/ReactAndroid/src/main/java/com/facebook/react/views/swiperefresh/SwipeRefreshLayoutManager.java index c8462a138cc..378dc2573f6 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/swiperefresh/SwipeRefreshLayoutManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/swiperefresh/SwipeRefreshLayoutManager.java @@ -88,11 +88,21 @@ public class SwipeRefreshLayoutManager extends ViewGroupManager