Skip to content

Commit ed24a4d

Browse files
riteshshukla04facebook-github-bot
authored andcommitted
fix-types in Refresh control (#53907)
Summary: Fixes #53893 The size should be of type string (large or default) . Typescript says number ## Changelog: <!-- Help reviewers and the release process by writing your own changelog entry. Pick one each for the category and type tags: [ANDROID|GENERAL|IOS|INTERNAL] [BREAKING|ADDED|CHANGED|DEPRECATED|REMOVED|FIXED|SECURITY] - Message For more details, see: https://reactnative.dev/contributing/changelogs-in-pull-requests --> [GENERAL][FIXED] Fixed Types in Refresh control Pull Request resolved: #53907 Test Plan: N/A Reviewed By: javache Differential Revision: D83161286 Pulled By: arushikesarwani94 fbshipit-source-id: 4e557bc3780f297551b913c5c763c369cf3e374c
1 parent 92cae27 commit ed24a4d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/react-native/Libraries/Components/RefreshControl/RefreshControl.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export interface RefreshControlPropsAndroid extends ViewProps {
4949
/**
5050
* Size of the refresh indicator, see RefreshControl.SIZE.
5151
*/
52-
size?: number | undefined;
52+
size?: 'default' | 'large' | undefined;
5353
}
5454

5555
export interface RefreshControlProps

0 commit comments

Comments
 (0)