mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fix Issue 10718: Add iOS support for progressViewOffset (#30737)
Summary: Fixes https://github.com/facebook/react-native/issues/10718, bringing `progressViewOffset` support to iOS. Thanks to Taylor123 for the initial PR upon which this fix is based. ## Changelog [iOS] [Fix] - `progressViewOffset` prop of `RefreshControl` and `VirtualizedList` now works on iOS Pull Request resolved: https://github.com/facebook/react-native/pull/30737 Test Plan: Tested with quick-and-dirty sample app.  ## Documentation The corresponding documentation update PR can be found [here](https://github.com/facebook/react-native-website/pull/2441). Reviewed By: kacieb Differential Revision: D26813977 Pulled By: sammy-SC fbshipit-source-id: 45cc5a647d70e44a29c6391b7586cb41ca011bef
This commit is contained in:
committed by
Facebook GitHub Bot
parent
896baf79d5
commit
310a6bcf4b
@@ -8,7 +8,11 @@
|
||||
* @flow strict-local
|
||||
*/
|
||||
|
||||
import type {DirectEventHandler, WithDefault} from '../../Types/CodegenTypes';
|
||||
import type {
|
||||
DirectEventHandler,
|
||||
Float,
|
||||
WithDefault,
|
||||
} from '../../Types/CodegenTypes';
|
||||
import type {ColorValue} from '../../StyleSheet/StyleSheet';
|
||||
import type {ViewProps} from '../View/ViewPropTypes';
|
||||
import * as React from 'react';
|
||||
@@ -32,6 +36,10 @@ type NativeProps = $ReadOnly<{|
|
||||
* The title displayed under the refresh indicator.
|
||||
*/
|
||||
title?: WithDefault<string, null>,
|
||||
/**
|
||||
* Progress view top offset
|
||||
*/
|
||||
progressViewOffset?: WithDefault<Float, 0>,
|
||||
|
||||
/**
|
||||
* Called when the view starts refreshing.
|
||||
|
||||
Reference in New Issue
Block a user