File tree Expand file tree Collapse file tree 3 files changed +15
-11
lines changed
packages/react-native/Libraries
Components/ActivityIndicator
scripts/build/build-types Expand file tree Collapse file tree 3 files changed +15
-11
lines changed Original file line number Diff line number Diff line change @@ -26,17 +26,17 @@ const GRAY = '#999999';
2626
2727type IndicatorSize = number | 'small' | 'large' ;
2828
29- type IOSProps = $ReadOnly < {
29+ export type ActivityIndicatorIOSProps = $ReadOnly < {
3030 /**
3131 Whether the indicator should hide when not animating.
3232
3333 @platform ios
3434 */
3535 hidesWhenStopped ?: ?boolean ,
3636} > ;
37- type Props = $ReadOnly < {
37+ export type ActivityIndicatorProps = $ReadOnly < {
3838 ...ViewProps ,
39- ...IOSProps ,
39+ ...ActivityIndicatorIOSProps ,
4040
4141 /**
4242 Whether to show the indicator (`true`) or hide it (`false`).
@@ -69,7 +69,7 @@ const ActivityIndicator = (
6969 size = 'small' ,
7070 style,
7171 ...restProps
72- } : Props ,
72+ } : ActivityIndicatorProps ,
7373 forwardedRef ?: any ,
7474) => {
7575 let sizeStyle ;
@@ -154,8 +154,8 @@ const ActivityIndicator = (
154154*/
155155
156156const ActivityIndicatorWithRef : component (
157- ref : React . RefSetter < HostComponent < empty > > ,
158- ...props: Props
157+ ref ? : React . RefSetter < HostComponent < empty >> ,
158+ ...props : ActivityIndicatorProps
159159) = React . forwardRef ( ActivityIndicator ) ;
160160ActivityIndicatorWithRef . displayName = 'ActivityIndicator' ;
161161
Original file line number Diff line number Diff line change @@ -1382,19 +1382,19 @@ declare export default typeof legacySendAccessibilityEvent;
13821382
13831383exports[`public API should not change unintentionally Libraries/Components/ActivityIndicator/ActivityIndicator.js 1`] = `
13841384"type IndicatorSize = number | \\"small\\" | \\"large\\";
1385- type IOSProps = $ReadOnly<{
1385+ export type ActivityIndicatorIOSProps = $ReadOnly<{
13861386 hidesWhenStopped?: ?boolean,
13871387}>;
1388- type Props = $ReadOnly<{
1388+ export type ActivityIndicatorProps = $ReadOnly<{
13891389 ...ViewProps,
1390- ...IOSProps ,
1390+ ...ActivityIndicatorIOSProps ,
13911391 animating?: ?boolean,
13921392 color?: ?ColorValue,
13931393 size?: ?IndicatorSize,
13941394}>;
13951395declare const ActivityIndicatorWithRef: component(
1396- ref: React.RefSetter<HostComponent<empty>>,
1397- ...props: Props
1396+ ref? : React.RefSetter<HostComponent<empty>>,
1397+ ...props: ActivityIndicatorProps
13981398);
13991399declare export default typeof ActivityIndicatorWithRef;
14001400"
Original file line number Diff line number Diff line change @@ -28,6 +28,10 @@ const IGNORE_PATTERNS = [
2828const ENTRY_POINTS = [
2929 'packages/react-native/Libraries/ActionSheetIOS/ActionSheetIOS.js' ,
3030 'packages/react-native/Libraries/Alert/Alert.js' ,
31+ 'packages/react-native/Libraries/Components/ActivityIndicator/ActivityIndicator.js' ,
32+ 'packages/react-native/Libraries/EventEmitter/NativeEventEmitter.js' ,
33+ 'packages/react-native/Libraries/EventEmitter/RCTDeviceEventEmitter.js' ,
34+ 'packages/react-native/Libraries/EventEmitter/RCTNativeAppEventEmitter.js' ,
3135 'packages/react-native/Libraries/AppState/AppState.js' ,
3236 'packages/react-native/Libraries/BatchedBridge/NativeModules.js' ,
3337 'packages/react-native/Libraries/Blob/Blob.js' ,
You can’t perform that action at this time.
0 commit comments