Skip to content

Commit 3f56ac0

Browse files
marcoww6meta-codesync[bot]
authored andcommitted
Fix react-native-github/packages/react-native-codegen/e2e/deep_imports/__test_fixtures__
Summary: codemoded. Changelog: [internal] Reviewed By: SamChou19815 Differential Revision: D90895159 fbshipit-source-id: 6753b0552f5543870ffd8bfae8ee1332e506f55f
1 parent 0d64cf2 commit 3f56ac0

20 files changed

+43
-43
lines changed

packages/react-native-codegen/e2e/deep_imports/__test_fixtures__/components/ArrayPropsNativeComponent.js

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -26,23 +26,23 @@ import type {
2626

2727
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
2828

29-
type NativeProps = $ReadOnly<{
29+
type NativeProps = Readonly<{
3030
...ViewProps,
3131

3232
// Props
33-
names?: $ReadOnlyArray<string>,
34-
disableds?: $ReadOnlyArray<boolean>,
35-
progress?: $ReadOnlyArray<Int32>,
36-
radii?: $ReadOnlyArray<Float>,
37-
colors?: $ReadOnlyArray<ColorValue>,
38-
srcs?: $ReadOnlyArray<ImageSource>,
39-
points?: $ReadOnlyArray<PointValue>,
40-
edgeInsets?: $ReadOnlyArray<EdgeInsetsValue>,
41-
dimensions?: $ReadOnlyArray<DimensionValue>,
42-
sizes?: WithDefault<$ReadOnlyArray<'small' | 'large'>, 'small'>,
43-
object?: $ReadOnlyArray<$ReadOnly<{prop: string}>>,
44-
arrayOfObjects?: $ReadOnlyArray<$ReadOnly<{prop1: Float, prop2: Int32}>>,
45-
arrayOfMixed?: $ReadOnlyArray<UnsafeMixed>,
33+
names?: ReadonlyArray<string>,
34+
disableds?: ReadonlyArray<boolean>,
35+
progress?: ReadonlyArray<Int32>,
36+
radii?: ReadonlyArray<Float>,
37+
colors?: ReadonlyArray<ColorValue>,
38+
srcs?: ReadonlyArray<ImageSource>,
39+
points?: ReadonlyArray<PointValue>,
40+
edgeInsets?: ReadonlyArray<EdgeInsetsValue>,
41+
dimensions?: ReadonlyArray<DimensionValue>,
42+
sizes?: WithDefault<ReadonlyArray<'small' | 'large'>, 'small'>,
43+
object?: ReadonlyArray<Readonly<{prop: string}>>,
44+
arrayOfObjects?: ReadonlyArray<Readonly<{prop1: Float, prop2: Int32}>>,
45+
arrayOfMixed?: ReadonlyArray<UnsafeMixed>,
4646
}>;
4747

4848
export default (codegenNativeComponent<NativeProps>(

packages/react-native-codegen/e2e/deep_imports/__test_fixtures__/components/BooleanPropNativeComponent.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import type {WithDefault} from 'react-native/Libraries/Types/CodegenTypes';
1414

1515
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
1616

17-
type NativeProps = $ReadOnly<{
17+
type NativeProps = Readonly<{
1818
...ViewProps,
1919

2020
// Props

packages/react-native-codegen/e2e/deep_imports/__test_fixtures__/components/ColorPropNativeComponent.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import type {ColorValue} from 'react-native/Libraries/StyleSheet/StyleSheet';
1414

1515
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
1616

17-
type NativeProps = $ReadOnly<{
17+
type NativeProps = Readonly<{
1818
...ViewProps,
1919

2020
// Props

packages/react-native-codegen/e2e/deep_imports/__test_fixtures__/components/DimensionPropNativeComponent.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import type {DimensionValue} from 'react-native/Libraries/StyleSheet/StyleSheetT
1414

1515
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
1616

17-
type NativeProps = $ReadOnly<{
17+
type NativeProps = Readonly<{
1818
...ViewProps,
1919

2020
// Props

packages/react-native-codegen/e2e/deep_imports/__test_fixtures__/components/EdgeInsetsPropNativeComponent.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import type {ViewProps} from 'react-native/Libraries/Components/View/ViewPropTyp
1313

1414
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
1515

16-
type NativeProps = $ReadOnly<{
16+
type NativeProps = Readonly<{
1717
...ViewProps,
1818

1919
// Props

packages/react-native-codegen/e2e/deep_imports/__test_fixtures__/components/EnumPropNativeComponent.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import type {WithDefault} from 'react-native/Libraries/Types/CodegenTypes';
1414

1515
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
1616

17-
type NativeProps = $ReadOnly<{
17+
type NativeProps = Readonly<{
1818
...ViewProps,
1919

2020
// Props

packages/react-native-codegen/e2e/deep_imports/__test_fixtures__/components/EventNestedObjectPropsNativeComponent.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,17 @@ import type {
1818

1919
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
2020

21-
type OnChangeEvent = $ReadOnly<{
21+
type OnChangeEvent = Readonly<{
2222
location: {
2323
source: {url: string, ...},
2424
x: Int32,
2525
y: Int32,
26-
arrayOfObjects: $ReadOnlyArray<{value: $ReadOnly<{str: string}>}>,
26+
arrayOfObjects: ReadonlyArray<{value: Readonly<{str: string}>}>,
2727
...
2828
},
2929
}>;
3030

31-
type NativeProps = $ReadOnly<{
31+
type NativeProps = Readonly<{
3232
...ViewProps,
3333

3434
// Props

packages/react-native-codegen/e2e/deep_imports/__test_fixtures__/components/EventPropsNativeComponent.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,22 @@ import type {
2020

2121
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
2222

23-
type OnChangeEvent = $ReadOnly<{
23+
type OnChangeEvent = Readonly<{
2424
value: boolean,
2525
source?: string,
2626
progress: ?Int32,
2727
scale?: ?Float,
2828
}>;
2929

30-
type OnEventDirect = $ReadOnly<{
30+
type OnEventDirect = Readonly<{
3131
value: boolean,
3232
}>;
3333

34-
type OnOrientationChangeEvent = $ReadOnly<{
34+
type OnOrientationChangeEvent = Readonly<{
3535
orientation: 'landscape' | 'portrait',
3636
}>;
3737

38-
type NativeProps = $ReadOnly<{
38+
type NativeProps = Readonly<{
3939
...ViewProps,
4040

4141
// Props

packages/react-native-codegen/e2e/deep_imports/__test_fixtures__/components/FloatPropsNativeComponent.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import type {
1717

1818
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
1919

20-
type NativeProps = $ReadOnly<{
20+
type NativeProps = Readonly<{
2121
...ViewProps,
2222

2323
// Props

packages/react-native-codegen/e2e/deep_imports/__test_fixtures__/components/ImagePropNativeComponent.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import type {ImageSource} from 'react-native/Libraries/Image/ImageSource';
1414

1515
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
1616

17-
type NativeProps = $ReadOnly<{
17+
type NativeProps = Readonly<{
1818
...ViewProps,
1919

2020
// Props

0 commit comments

Comments
 (0)