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 @@ -680,6 +680,7 @@ type ScrollViewBaseProps = Readonly<{
scrollViewRef?: React.RefSetter<PublicScrollViewInstance>,
}>;

/** @build-types emit-as-interface Nativewind compatibility */
export type ScrollViewProps = Readonly<{
...Omit<ViewProps, 'experimental_accessibilityOrder'>,
...ScrollViewPropsIOS,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ type SwitchPropsBase = {
onValueChange?: ?(value: boolean) => Promise<void> | void,
};

/** @build-types emit-as-interface Expo compatibility */
export type SwitchProps = Readonly<{
...ViewProps,
...SwitchPropsIOS,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ import * as React from 'react';
* For an example, look at InputAccessoryViewExample.js in RNTester.
*/

/** @build-types emit-as-interface Expo compatibility */
export type InputAccessoryViewProps = Readonly<{
+children: React.Node,
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export type TouchableWithoutFeedbackPropsAndroid = {
touchSoundDisabled?: ?boolean,
};

/** @build-types emit-as-interface Expo compatibility */
export type TouchableWithoutFeedbackProps = Readonly<
{
children?: ?React.Node,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,7 @@ type ViewBaseProps = Readonly<{
experimental_accessibilityOrder?: ?Array<string>,
}>;

/** @build-types emit-as-interface Nativewind, Expo compatibility */
export type ViewProps = Readonly<{
...DirectEventProps,
...GestureResponderHandlers,
Expand Down
1 change: 1 addition & 0 deletions packages/react-native/Libraries/Image/ImageProps.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ export type ImagePropsAndroid = Readonly<{
resizeMultiplier?: ?number,
}>;

/** @build-types emit-as-interface Expo compatibility */
export type ImagePropsBase = Readonly<{
...Omit<ViewProps, 'style'>,
/**
Expand Down
5 changes: 3 additions & 2 deletions packages/react-native/Libraries/Lists/FlatList.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,8 @@ type FlatListBaseProps<ItemT> = {
...OptionalFlatListProps<ItemT>,
};

export type FlatListProps<ItemT> = {
/** @build-types emit-as-interface Nativewind compatibility */
export type FlatListProps<ItemT> = Readonly<{
...Omit<
VirtualizedListProps,
| 'data'
Expand All @@ -194,7 +195,7 @@ export type FlatListProps<ItemT> = {
>,
...FlatListBaseProps<ItemT>,
...
};
}>;

/**
* A performant interface for rendering simple, flat lists, supporting the most handy features:
Expand Down
Loading
Loading