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 @@ -34,6 +34,7 @@ type ActivityIndicatorIOSProps = Readonly<{
*/
hidesWhenStopped?: ?boolean,
}>;
/** @build-types emit-as-interface Uniwind compatibility */
export type ActivityIndicatorProps = Readonly<{
...ViewProps,
...ActivityIndicatorIOSProps,
Expand Down
1 change: 1 addition & 0 deletions packages/react-native/Libraries/Components/Button.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import View from './View/View';
import invariant from 'invariant';
import * as React from 'react';

/** @build-types emit-as-interface Uniwind compatibility */
export type ButtonProps = Readonly<{
/**
Text to display inside the button. On Android the given title will be
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import Keyboard from './Keyboard';
import * as React from 'react';
import {createRef} from 'react';

/** @build-types emit-as-interface Uniwind compatibility */
export type KeyboardAvoidingViewProps = Readonly<{
...ViewProps,

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ type PressableBaseProps = Readonly<{
unstable_pressDelay?: ?number,
}>;

/** @build-types emit-as-interface Uniwind compatibility */
export type PressableProps = Readonly<{
// Pressability may override `onMouseEnter` and `onMouseLeave` to
// implement `onHoverIn` and `onHoverOut` in a platform-agnostic way.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ type RefreshControlBaseProps = Readonly<{
progressViewOffset?: ?number,
}>;

/** @build-types emit-as-interface Uniwind compatibility */
export type RefreshControlProps = Readonly<{
...ViewProps,
...RefreshControlPropsIOS,
Expand Down
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 @@ -1056,6 +1056,7 @@ type TextInputBaseProps = Readonly<{
textAlign?: ?('left' | 'center' | 'right'),
}>;

/** @build-types emit-as-interface Uniwind compatibility */
export type TextInputProps = Readonly<{
...Omit<ViewProps, 'style' | 'experimental_accessibilityOrder'>,
...TextInputIOSProps,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ type TouchableHighlightBaseProps = Readonly<{
hostRef?: React.RefSetter<React.ElementRef<typeof View>>,
}>;

/** @build-types emit-as-interface Uniwind compatibility */
export type TouchableHighlightProps = Readonly<{
...TouchableWithoutFeedbackProps,
...AndroidProps,
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
2 changes: 2 additions & 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 Expand Up @@ -342,6 +343,7 @@ export type ImageProps = Readonly<{
style?: ?ImageStyleProp,
}>;

/** @build-types emit-as-interface Uniwind compatibility */
export type ImageBackgroundProps = Readonly<{
...ImageProps,
children?: React.Node,
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
1 change: 1 addition & 0 deletions packages/react-native/Libraries/Lists/SectionList.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ type OptionalSectionListProps<ItemT, SectionT = DefaultSectionT> = {
removeClippedSubviews?: boolean,
};

/** @build-types emit-as-interface Uniwind compatibility */
export type SectionListProps<ItemT, SectionT = DefaultSectionT> = {
...Omit<
VirtualizedSectionListProps<ItemT, SectionT>,
Expand Down
1 change: 1 addition & 0 deletions packages/react-native/Libraries/Modal/Modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ type OrientationChangeEvent = Readonly<{
orientation: 'portrait' | 'landscape',
}>;

/** @build-types emit-as-interface Uniwind compatibility */
export type ModalBaseProps = {
/**
* @deprecated Use animationType instead
Expand Down
2 changes: 2 additions & 0 deletions packages/react-native/Libraries/Text/TextProps.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,8 @@ type TextBaseProps = Readonly<{

/**
* @see https://reactnative.dev/docs/text#reference
*
* @build-types emit-as-interface Uniwind compatibility
*/
export type TextProps = Readonly<{
...TextPointerEventProps,
Expand Down
Loading
Loading