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
This commit is contained in:
Marco Wang
2026-01-16 16:36:50 -08:00
committed by meta-codesync[bot]
parent 87d3a19735
commit 0d64cf2e98
18 changed files with 42 additions and 42 deletions
@@ -21,25 +21,25 @@ import type {
import {codegenNativeComponent} from 'react-native';
type NativeProps = $ReadOnly<{
type NativeProps = Readonly<{
...ViewProps,
// Props
names?: $ReadOnlyArray<string>,
disableds?: $ReadOnlyArray<boolean>,
progress?: $ReadOnlyArray<CodegenTypes.Int32>,
radii?: $ReadOnlyArray<CodegenTypes.Float>,
colors?: $ReadOnlyArray<ColorValue>,
srcs?: $ReadOnlyArray<ImageSource>,
points?: $ReadOnlyArray<PointValue>,
edgeInsets?: $ReadOnlyArray<EdgeInsetsValue>,
dimensions?: $ReadOnlyArray<DimensionValue>,
sizes?: CodegenTypes.WithDefault<$ReadOnlyArray<'small' | 'large'>, 'small'>,
object?: $ReadOnlyArray<$ReadOnly<{prop: string}>>,
arrayOfObjects?: $ReadOnlyArray<
$ReadOnly<{prop1: CodegenTypes.Float, prop2: CodegenTypes.Int32}>,
names?: ReadonlyArray<string>,
disableds?: ReadonlyArray<boolean>,
progress?: ReadonlyArray<CodegenTypes.Int32>,
radii?: ReadonlyArray<CodegenTypes.Float>,
colors?: ReadonlyArray<ColorValue>,
srcs?: ReadonlyArray<ImageSource>,
points?: ReadonlyArray<PointValue>,
edgeInsets?: ReadonlyArray<EdgeInsetsValue>,
dimensions?: ReadonlyArray<DimensionValue>,
sizes?: CodegenTypes.WithDefault<ReadonlyArray<'small' | 'large'>, 'small'>,
object?: ReadonlyArray<Readonly<{prop: string}>>,
arrayOfObjects?: ReadonlyArray<
Readonly<{prop1: CodegenTypes.Float, prop2: CodegenTypes.Int32}>,
>,
arrayOfMixed?: $ReadOnlyArray<CodegenTypes.UnsafeMixed>,
arrayOfMixed?: ReadonlyArray<CodegenTypes.UnsafeMixed>,
}>;
export default (codegenNativeComponent<NativeProps>(
@@ -12,7 +12,7 @@ import type {CodegenTypes, HostComponent, ViewProps} from 'react-native';
import {codegenNativeComponent} from 'react-native';
type NativeProps = $ReadOnly<{
type NativeProps = Readonly<{
...ViewProps,
// Props
@@ -12,7 +12,7 @@ import type {ColorValue, HostComponent, ViewProps} from 'react-native';
import {codegenNativeComponent} from 'react-native';
type NativeProps = $ReadOnly<{
type NativeProps = Readonly<{
...ViewProps,
// Props
@@ -12,7 +12,7 @@ import type {DimensionValue, HostComponent, ViewProps} from 'react-native';
import {codegenNativeComponent} from 'react-native';
type NativeProps = $ReadOnly<{
type NativeProps = Readonly<{
...ViewProps,
// Props
@@ -12,7 +12,7 @@ import type {HostComponent, ViewProps} from 'react-native';
import {codegenNativeComponent} from 'react-native';
type NativeProps = $ReadOnly<{
type NativeProps = Readonly<{
...ViewProps,
// Props
@@ -12,7 +12,7 @@ import type {CodegenTypes, HostComponent, ViewProps} from 'react-native';
import {codegenNativeComponent} from 'react-native';
type NativeProps = $ReadOnly<{
type NativeProps = Readonly<{
...ViewProps,
// Props
@@ -12,17 +12,17 @@ import type {CodegenTypes, HostComponent, ViewProps} from 'react-native';
import {codegenNativeComponent} from 'react-native';
type OnChangeEvent = $ReadOnly<{
type OnChangeEvent = Readonly<{
location: {
source: {url: string, ...},
x: CodegenTypes.Int32,
y: CodegenTypes.Int32,
arrayOfObjects: $ReadOnlyArray<{value: $ReadOnly<{str: string}>}>,
arrayOfObjects: ReadonlyArray<{value: Readonly<{str: string}>}>,
...
},
}>;
type NativeProps = $ReadOnly<{
type NativeProps = Readonly<{
...ViewProps,
// Props
@@ -12,22 +12,22 @@ import type {CodegenTypes, HostComponent, ViewProps} from 'react-native';
import {codegenNativeComponent} from 'react-native';
type OnChangeEvent = $ReadOnly<{
type OnChangeEvent = Readonly<{
value: boolean,
source?: string,
progress: ?CodegenTypes.Int32,
scale?: ?CodegenTypes.Float,
}>;
type OnEventDirect = $ReadOnly<{
type OnEventDirect = Readonly<{
value: boolean,
}>;
type OnOrientationChangeEvent = $ReadOnly<{
type OnOrientationChangeEvent = Readonly<{
orientation: 'landscape' | 'portrait',
}>;
type NativeProps = $ReadOnly<{
type NativeProps = Readonly<{
...ViewProps,
// Props
@@ -12,7 +12,7 @@ import type {CodegenTypes, HostComponent, ViewProps} from 'react-native';
import {codegenNativeComponent} from 'react-native';
type NativeProps = $ReadOnly<{
type NativeProps = Readonly<{
...ViewProps,
// Props
@@ -12,7 +12,7 @@ import type {HostComponent, ImageSource, ViewProps} from 'react-native';
import {codegenNativeComponent} from 'react-native';
type NativeProps = $ReadOnly<{
type NativeProps = Readonly<{
...ViewProps,
// Props
@@ -12,7 +12,7 @@ import type {CodegenTypes, HostComponent, ViewProps} from 'react-native';
import {codegenNativeComponent} from 'react-native';
type NativeProps = $ReadOnly<{
type NativeProps = Readonly<{
...ViewProps,
// Props
@@ -12,14 +12,14 @@ import type {CodegenTypes, HostComponent, ViewProps} from 'react-native';
import {codegenNativeComponent} from 'react-native';
type NativeProps = $ReadOnly<{
type NativeProps = Readonly<{
...ViewProps,
// Props
title?: CodegenTypes.WithDefault<string, ''>,
// Events
onChange?: ?CodegenTypes.BubblingEventHandler<$ReadOnly<{value: boolean}>>,
onChange?: ?CodegenTypes.BubblingEventHandler<Readonly<{value: boolean}>>,
}>;
export default (codegenNativeComponent<NativeProps>(
@@ -12,7 +12,7 @@ import type {CodegenTypes, HostComponent, ViewProps} from 'react-native';
import {codegenNativeComponent} from 'react-native';
type NativeProps = $ReadOnly<{
type NativeProps = Readonly<{
...ViewProps,
// Props
@@ -18,7 +18,7 @@ import type {
import {codegenNativeComponent} from 'react-native';
type NativeProps = $ReadOnly<{
type NativeProps = Readonly<{
...ViewProps,
// Props
@@ -12,7 +12,7 @@ import type {HostComponent, ViewProps} from 'react-native';
import {codegenNativeComponent} from 'react-native';
type NativeProps = $ReadOnly<{
type NativeProps = Readonly<{
...ViewProps,
// No Props or events
@@ -19,15 +19,15 @@ import type {
import {codegenNativeComponent} from 'react-native';
type ObjectArrayPropType = $ReadOnly<{
array: $ReadOnlyArray<string>,
type ObjectArrayPropType = Readonly<{
array: ReadonlyArray<string>,
}>;
type NativeProps = $ReadOnly<{
type NativeProps = Readonly<{
...ViewProps,
// Props
objectProp?: $ReadOnly<{
objectProp?: Readonly<{
stringProp?: CodegenTypes.WithDefault<string, ''>,
booleanProp: boolean,
floatProp: CodegenTypes.Float,
@@ -36,7 +36,7 @@ type NativeProps = $ReadOnly<{
intEnumProp?: CodegenTypes.WithDefault<0 | 1, 0>,
}>,
objectArrayProp: ObjectArrayPropType,
objectPrimitiveRequiredProp: $ReadOnly<{
objectPrimitiveRequiredProp: Readonly<{
image: ImageSource,
color?: ColorValue,
point: ?PointValue,
@@ -12,7 +12,7 @@ import type {HostComponent, PointValue, ViewProps} from 'react-native';
import {codegenNativeComponent} from 'react-native';
type NativeProps = $ReadOnly<{
type NativeProps = Readonly<{
...ViewProps,
// Props
@@ -12,7 +12,7 @@ import type {CodegenTypes, HostComponent, ViewProps} from 'react-native';
import {codegenNativeComponent} from 'react-native';
type NativeProps = $ReadOnly<{
type NativeProps = Readonly<{
...ViewProps,
// Props