Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhide new arch layout props #46478

Closed
wants to merge 1 commit into from
Closed
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
95 changes: 93 additions & 2 deletions packages/react-native/Libraries/StyleSheet/StyleSheetTypes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,102 @@ export interface FlexStyle {
top?: DimensionValue | undefined;
width?: DimensionValue | undefined;
zIndex?: number | undefined;
direction?: 'inherit' | 'ltr' | 'rtl' | undefined;

/**
* @platform ios
* Equivalent to `top`, `bottom`, `right` and `left`
*/
direction?: 'inherit' | 'ltr' | 'rtl' | undefined;
inset?: DimensionValue | undefined;

/**
* Equivalent to `top`, `bottom`
*/
insetBlock?: DimensionValue | undefined;

/**
* Equivalent to `bottom`
*/
insetBlockEnd?: DimensionValue | undefined;

/**
* Equivalent to `top`
*/
insetBlockStart?: DimensionValue | undefined;

/**
* Equivalent to `right` and `left`
*/
insetInline?: DimensionValue | undefined;

/**
* Equivalent to `right` or `left`
*/
insetInlineEnd?: DimensionValue | undefined;

/**
* Equivalent to `right` or `left`
*/
insetInlineStart?: DimensionValue | undefined;

/**
* Equivalent to `marginVertical`
*/
marginBlock?: DimensionValue | undefined;

/**
* Equivalent to `marginBottom`
*/
marginBlockEnd?: DimensionValue | undefined;

/**
* Equivalent to `marginTop`
*/
marginBlockStart?: DimensionValue | undefined;

/**
* Equivalent to `marginHorizontal`
*/
marginInline?: DimensionValue | undefined;

/**
* Equivalent to `marginEnd`
*/
marginInlineEnd?: DimensionValue | undefined;

/**
* Equivalent to `marginStart`
*/
marginInlineStart?: DimensionValue | undefined;

/**
* Equivalent to `paddingVertical`
*/
paddingBlock?: DimensionValue | undefined;

/**
* Equivalent to `paddingBottom`
*/
paddingBlockEnd?: DimensionValue | undefined;

/**
* Equivalent to `paddingTop`
*/
paddingBlockStart?: DimensionValue | undefined;

/**
* Equivalent to `paddingHorizontal`
*/
paddingInline?: DimensionValue | undefined;

/**
* Equivalent to `paddingEnd`
*/
paddingInlineEnd?: DimensionValue | undefined;

/**
* Equivalent to `paddingStart`
*/
paddingInlineStart?: DimensionValue | undefined;
}

export interface ShadowStyleIOS {
Expand Down
98 changes: 0 additions & 98 deletions packages/react-native/types/experimental.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,110 +36,12 @@ import {
GradientValue,
BlendMode,
BoxShadowPrimitive,
DimensionValue,
FilterFunction,
} from 'react-native/Libraries/StyleSheet/StyleSheetTypes';

export {};

declare module '.' {
export interface FlexStyle {
/**
* Equivalent to `top`, `bottom`, `right` and `left`
*/
inset?: DimensionValue | undefined;

/**
* Equivalent to `top`, `bottom`
*/
insetBlock?: DimensionValue | undefined;

/**
* Equivalent to `bottom`
*/
insetBlockEnd?: DimensionValue | undefined;

/**
* Equivalent to `top`
*/
insetBlockStart?: DimensionValue | undefined;

/**
* Equivalent to `right` and `left`
*/
insetInline?: DimensionValue | undefined;

/**
* Equivalent to `right` or `left`
*/
insetInlineEnd?: DimensionValue | undefined;

/**
* Equivalent to `right` or `left`
*/
insetInlineStart?: DimensionValue | undefined;

/**
* Equivalent to `marginVertical`
*/
marginBlock?: DimensionValue | undefined;

/**
* Equivalent to `marginBottom`
*/
marginBlockEnd?: DimensionValue | undefined;

/**
* Equivalent to `marginTop`
*/
marginBlockStart?: DimensionValue | undefined;

/**
* Equivalent to `marginHorizontal`
*/
marginInline?: DimensionValue | undefined;

/**
* Equivalent to `marginEnd`
*/
marginInlineEnd?: DimensionValue | undefined;

/**
* Equivalent to `marginStart`
*/
marginInlineStart?: DimensionValue | undefined;

/**
* Equivalent to `paddingVertical`
*/
paddingBlock?: DimensionValue | undefined;

/**
* Equivalent to `paddingBottom`
*/
paddingBlockEnd?: DimensionValue | undefined;

/**
* Equivalent to `paddingTop`
*/
paddingBlockStart?: DimensionValue | undefined;

/**
* Equivalent to `paddingHorizontal`
*/
paddingInline?: DimensionValue | undefined;

/**
* Equivalent to `paddingEnd`
*/
paddingInlineEnd?: DimensionValue | undefined;

/**
* Equivalent to `paddingStart`
*/
paddingInlineStart?: DimensionValue | undefined;
}

export interface ViewProps {
/**
* Contols whether this view, and its transitive children, are laid in a way
Expand Down
Loading