Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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>(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import type {HostComponent, ViewProps} from 'react-native';

import {codegenNativeComponent} from 'react-native';

type NativeProps = $ReadOnly<{
type NativeProps = Readonly<{
...ViewProps,

// Props
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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>(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import type {

import {codegenNativeComponent} from 'react-native';

type NativeProps = $ReadOnly<{
type NativeProps = Readonly<{
...ViewProps,

// Props
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading