|
| 1 | +[@react.component] [@bs.module "react-native"] |
| 2 | +external make: |
| 3 | + ( |
| 4 | + ~colors: array(Style.color)=?, |
| 5 | + ~enabled: bool=?, |
| 6 | + ~onRefresh: unit => unit=?, |
| 7 | + ~progressBackgroundColor: Style.color=?, |
| 8 | + ~progressViewOffset: float=?, |
| 9 | + ~refreshing: bool, |
| 10 | + ~tintColor: Style.color=?, |
| 11 | + ~title: string=?, |
| 12 | + ~titleColor: Style.color=?, |
| 13 | + // View props |
| 14 | + ~accessibilityComponentType: [@bs.string] [ |
| 15 | + | `none |
| 16 | + | `button |
| 17 | + | `radiobutton_checked |
| 18 | + | `radiobutton_unchecked |
| 19 | + ] |
| 20 | + =?, |
| 21 | + ~accessibilityElementsHidden: bool=?, |
| 22 | + ~accessibilityHint: string=?, |
| 23 | + ~accessibilityIgnoresInvertColors: bool=?, |
| 24 | + ~accessibilityLabel: string=?, |
| 25 | + ~accessibilityLiveRegion: [@bs.string] [ | `none | `polite | `assertive]=?, |
| 26 | + ~accessibilityRole: [@bs.string] [ |
| 27 | + | `none |
| 28 | + | `button |
| 29 | + | `link |
| 30 | + | `search |
| 31 | + | `image |
| 32 | + | `keyboardkey |
| 33 | + | `text |
| 34 | + | `adjustable |
| 35 | + | `header |
| 36 | + | `summary |
| 37 | + | `imagebutton |
| 38 | + ] |
| 39 | + =?, |
| 40 | + ~accessibilityStates: array(Types.AccessibilityState.t)=?, |
| 41 | + ~accessibilityTraits: array(Types.AccessibilityTrait.t)=?, |
| 42 | + ~accessibilityViewIsModal: bool=?, |
| 43 | + ~accessible: bool=?, |
| 44 | + ~collapsable: bool=?, |
| 45 | + ~hitSlop: Types.insets=?, |
| 46 | + ~importantForAccessibility: [@bs.string] [ |
| 47 | + | `auto |
| 48 | + | `yes |
| 49 | + | `no |
| 50 | + | [@bs.as "no-hide-descendants"] |
| 51 | + `noHideDescendants |
| 52 | + ] |
| 53 | + =?, |
| 54 | + ~nativeID: string=?, |
| 55 | + ~needsOffscreenAlphaCompositing: bool=?, |
| 56 | + ~onAccessibilityTap: unit => unit=?, |
| 57 | + ~onLayout: Event.NativeLayoutEvent.t => unit=?, |
| 58 | + ~onMagicTap: unit => unit=?, |
| 59 | + ~onMoveShouldSetResponder: Event.NativeEvent.t => bool=?, |
| 60 | + ~onMoveShouldSetResponderCapture: Event.NativeEvent.t => bool=?, |
| 61 | + ~onResponderGrant: Event.NativeEvent.t => unit=?, |
| 62 | + ~onResponderMove: Event.NativeEvent.t => unit=?, |
| 63 | + ~onResponderReject: Event.NativeEvent.t => unit=?, |
| 64 | + ~onResponderRelease: Event.NativeEvent.t => unit=?, |
| 65 | + ~onResponderTerminate: Event.NativeEvent.t => unit=?, |
| 66 | + ~onResponderTerminationRequest: Event.NativeEvent.t => unit=?, |
| 67 | + ~onStartShouldSetResponder: Event.NativeEvent.t => bool=?, |
| 68 | + ~onStartShouldSetResponderCapture: Event.NativeEvent.t => bool=?, |
| 69 | + ~pointerEvents: [@bs.string] [ |
| 70 | + | `auto |
| 71 | + | `none |
| 72 | + | [@bs.as "box-none"] `boxNone |
| 73 | + | [@bs.as "box-only"] `boxOnly |
| 74 | + ] |
| 75 | + =?, |
| 76 | + ~removeClippedSubviews: bool=?, |
| 77 | + ~renderToHardwareTextureAndroid: bool=?, |
| 78 | + ~shouldRasterizeIOS: bool=?, |
| 79 | + ~style: Style.t=?, |
| 80 | + ~testID: string=? |
| 81 | + ) => |
| 82 | + React.element = |
| 83 | + "RefreshControl"; |
0 commit comments