Skip to content

Commit 0d64cf2

Browse files
marcoww6meta-codesync[bot]
authored andcommitted
Fix react-native-github/packages/react-native-codegen/e2e/namespaced/__test_fixtures__/
Summary: codemoded Changelog: [Internal] Reviewed By: SamChou19815 Differential Revision: D90895199 fbshipit-source-id: b3c06e081b5c94ceed1a0de66c334d0ba4132119
1 parent 87d3a19 commit 0d64cf2

18 files changed

Lines changed: 42 additions & 42 deletions

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

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -21,25 +21,25 @@ import type {
2121

2222
import {codegenNativeComponent} from 'react-native';
2323

24-
type NativeProps = $ReadOnly<{
24+
type NativeProps = Readonly<{
2525
...ViewProps,
2626

2727
// Props
28-
names?: $ReadOnlyArray<string>,
29-
disableds?: $ReadOnlyArray<boolean>,
30-
progress?: $ReadOnlyArray<CodegenTypes.Int32>,
31-
radii?: $ReadOnlyArray<CodegenTypes.Float>,
32-
colors?: $ReadOnlyArray<ColorValue>,
33-
srcs?: $ReadOnlyArray<ImageSource>,
34-
points?: $ReadOnlyArray<PointValue>,
35-
edgeInsets?: $ReadOnlyArray<EdgeInsetsValue>,
36-
dimensions?: $ReadOnlyArray<DimensionValue>,
37-
sizes?: CodegenTypes.WithDefault<$ReadOnlyArray<'small' | 'large'>, 'small'>,
38-
object?: $ReadOnlyArray<$ReadOnly<{prop: string}>>,
39-
arrayOfObjects?: $ReadOnlyArray<
40-
$ReadOnly<{prop1: CodegenTypes.Float, prop2: CodegenTypes.Int32}>,
28+
names?: ReadonlyArray<string>,
29+
disableds?: ReadonlyArray<boolean>,
30+
progress?: ReadonlyArray<CodegenTypes.Int32>,
31+
radii?: ReadonlyArray<CodegenTypes.Float>,
32+
colors?: ReadonlyArray<ColorValue>,
33+
srcs?: ReadonlyArray<ImageSource>,
34+
points?: ReadonlyArray<PointValue>,
35+
edgeInsets?: ReadonlyArray<EdgeInsetsValue>,
36+
dimensions?: ReadonlyArray<DimensionValue>,
37+
sizes?: CodegenTypes.WithDefault<ReadonlyArray<'small' | 'large'>, 'small'>,
38+
object?: ReadonlyArray<Readonly<{prop: string}>>,
39+
arrayOfObjects?: ReadonlyArray<
40+
Readonly<{prop1: CodegenTypes.Float, prop2: CodegenTypes.Int32}>,
4141
>,
42-
arrayOfMixed?: $ReadOnlyArray<CodegenTypes.UnsafeMixed>,
42+
arrayOfMixed?: ReadonlyArray<CodegenTypes.UnsafeMixed>,
4343
}>;
4444

4545
export default (codegenNativeComponent<NativeProps>(

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import type {CodegenTypes, HostComponent, ViewProps} from 'react-native';
1212

1313
import {codegenNativeComponent} from 'react-native';
1414

15-
type NativeProps = $ReadOnly<{
15+
type NativeProps = Readonly<{
1616
...ViewProps,
1717

1818
// Props

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import type {ColorValue, HostComponent, ViewProps} from 'react-native';
1212

1313
import {codegenNativeComponent} from 'react-native';
1414

15-
type NativeProps = $ReadOnly<{
15+
type NativeProps = Readonly<{
1616
...ViewProps,
1717

1818
// Props

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import type {DimensionValue, HostComponent, ViewProps} from 'react-native';
1212

1313
import {codegenNativeComponent} from 'react-native';
1414

15-
type NativeProps = $ReadOnly<{
15+
type NativeProps = Readonly<{
1616
...ViewProps,
1717

1818
// Props

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import type {HostComponent, ViewProps} from 'react-native';
1212

1313
import {codegenNativeComponent} from 'react-native';
1414

15-
type NativeProps = $ReadOnly<{
15+
type NativeProps = Readonly<{
1616
...ViewProps,
1717

1818
// Props

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import type {CodegenTypes, HostComponent, ViewProps} from 'react-native';
1212

1313
import {codegenNativeComponent} from 'react-native';
1414

15-
type NativeProps = $ReadOnly<{
15+
type NativeProps = Readonly<{
1616
...ViewProps,
1717

1818
// Props

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@ import type {CodegenTypes, HostComponent, ViewProps} from 'react-native';
1212

1313
import {codegenNativeComponent} from 'react-native';
1414

15-
type OnChangeEvent = $ReadOnly<{
15+
type OnChangeEvent = Readonly<{
1616
location: {
1717
source: {url: string, ...},
1818
x: CodegenTypes.Int32,
1919
y: CodegenTypes.Int32,
20-
arrayOfObjects: $ReadOnlyArray<{value: $ReadOnly<{str: string}>}>,
20+
arrayOfObjects: ReadonlyArray<{value: Readonly<{str: string}>}>,
2121
...
2222
},
2323
}>;
2424

25-
type NativeProps = $ReadOnly<{
25+
type NativeProps = Readonly<{
2626
...ViewProps,
2727

2828
// Props

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,22 @@ import type {CodegenTypes, HostComponent, ViewProps} from 'react-native';
1212

1313
import {codegenNativeComponent} from 'react-native';
1414

15-
type OnChangeEvent = $ReadOnly<{
15+
type OnChangeEvent = Readonly<{
1616
value: boolean,
1717
source?: string,
1818
progress: ?CodegenTypes.Int32,
1919
scale?: ?CodegenTypes.Float,
2020
}>;
2121

22-
type OnEventDirect = $ReadOnly<{
22+
type OnEventDirect = Readonly<{
2323
value: boolean,
2424
}>;
2525

26-
type OnOrientationChangeEvent = $ReadOnly<{
26+
type OnOrientationChangeEvent = Readonly<{
2727
orientation: 'landscape' | 'portrait',
2828
}>;
2929

30-
type NativeProps = $ReadOnly<{
30+
type NativeProps = Readonly<{
3131
...ViewProps,
3232

3333
// Props

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import type {CodegenTypes, HostComponent, ViewProps} from 'react-native';
1212

1313
import {codegenNativeComponent} from 'react-native';
1414

15-
type NativeProps = $ReadOnly<{
15+
type NativeProps = Readonly<{
1616
...ViewProps,
1717

1818
// Props

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import type {HostComponent, ImageSource, ViewProps} from 'react-native';
1212

1313
import {codegenNativeComponent} from 'react-native';
1414

15-
type NativeProps = $ReadOnly<{
15+
type NativeProps = Readonly<{
1616
...ViewProps,
1717

1818
// Props

0 commit comments

Comments
 (0)