File tree Expand file tree Collapse file tree 3 files changed +12
-11
lines changed
packages/react-native/Libraries
Components/ActivityIndicator
scripts/build/build-types Expand file tree Collapse file tree 3 files changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -26,17 +26,17 @@ const GRAY = '#999999';
26
26
27
27
type IndicatorSize = number | 'small' | 'large' ;
28
28
29
- type IOSProps = $ReadOnly < {
29
+ type ActivityIndicatorIOSProps = $ReadOnly < {
30
30
/**
31
31
Whether the indicator should hide when not animating.
32
32
33
33
@platform ios
34
34
*/
35
35
hidesWhenStopped ?: ?boolean ,
36
36
} > ;
37
- type Props = $ReadOnly < {
37
+ export type ActivityIndicatorProps = $ReadOnly < {
38
38
...ViewProps ,
39
- ...IOSProps ,
39
+ ...ActivityIndicatorIOSProps ,
40
40
41
41
/**
42
42
Whether to show the indicator (`true`) or hide it (`false`).
@@ -69,7 +69,7 @@ const ActivityIndicator = (
69
69
size = 'small' ,
70
70
style,
71
71
...restProps
72
- } : Props ,
72
+ } : ActivityIndicatorProps ,
73
73
forwardedRef ?: any ,
74
74
) => {
75
75
let sizeStyle ;
@@ -154,8 +154,8 @@ const ActivityIndicator = (
154
154
*/
155
155
156
156
const ActivityIndicatorWithRef : component (
157
- ref : React . RefSetter < HostComponent < empty > > ,
158
- ...props: Props
157
+ ref ? : React . RefSetter < HostComponent < empty >> ,
158
+ ...props : ActivityIndicatorProps
159
159
) = React . forwardRef ( ActivityIndicator ) ;
160
160
ActivityIndicatorWithRef . displayName = 'ActivityIndicator' ;
161
161
Original file line number Diff line number Diff line change @@ -1382,19 +1382,19 @@ declare export default typeof legacySendAccessibilityEvent;
1382
1382
1383
1383
exports[`public API should not change unintentionally Libraries/Components/ActivityIndicator/ActivityIndicator.js 1`] = `
1384
1384
"type IndicatorSize = number | \\"small\\" | \\"large\\";
1385
- type IOSProps = $ReadOnly<{
1385
+ type ActivityIndicatorIOSProps = $ReadOnly<{
1386
1386
hidesWhenStopped?: ?boolean,
1387
1387
}>;
1388
- type Props = $ReadOnly<{
1388
+ export type ActivityIndicatorProps = $ReadOnly<{
1389
1389
...ViewProps,
1390
- ...IOSProps ,
1390
+ ...ActivityIndicatorIOSProps ,
1391
1391
animating?: ?boolean,
1392
1392
color?: ?ColorValue,
1393
1393
size?: ?IndicatorSize,
1394
1394
}>;
1395
1395
declare const ActivityIndicatorWithRef: component(
1396
- ref: React.RefSetter<HostComponent<empty>>,
1397
- ...props: Props
1396
+ ref? : React.RefSetter<HostComponent<empty>>,
1397
+ ...props: ActivityIndicatorProps
1398
1398
);
1399
1399
declare export default typeof ActivityIndicatorWithRef;
1400
1400
"
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ const ENTRY_POINTS = [
36
36
'packages/react-native/Libraries/Blob/URL.js' ,
37
37
'packages/react-native/Libraries/Blob/URLSearchParams.js' ,
38
38
'packages/react-native/Libraries/Components/AccessibilityInfo/AccessibilityInfo.js' ,
39
+ 'packages/react-native/Libraries/Components/ActivityIndicator/ActivityIndicator.js' ,
39
40
'packages/react-native/Libraries/Components/Clipboard/Clipboard.js' ,
40
41
'packages/react-native/Libraries/Components/LayoutConformance/LayoutConformance.js' ,
41
42
'packages/react-native/Libraries/Components/ToastAndroid/ToastAndroid.js' ,
You can’t perform that action at this time.
0 commit comments