@ramses-superapp/ramses-ui
Version:
Skinless UI primitives for Ramses Built Apps
6 lines • 783 B
TypeScript
import type { ViewStyle } from 'react-native';
export declare const LAYOUT_PROP_KEYS: readonly ["width", "height", "minWidth", "maxWidth", "minHeight", "maxHeight", "flex", "flexGrow", "flexShrink", "flexBasis", "alignSelf", "margin", "marginTop", "marginBottom", "marginLeft", "marginRight", "marginHorizontal", "marginVertical", "padding", "paddingTop", "paddingBottom", "paddingLeft", "paddingRight", "paddingHorizontal", "paddingVertical", "position", "top", "left", "right", "bottom", "zIndex", "display", "overflow", "aspectRatio"];
export type LayoutPropKey = (typeof LAYOUT_PROP_KEYS)[number];
export type LayoutStyle = Pick<ViewStyle, LayoutPropKey>;
export declare function extractLayoutProps(style: ViewStyle | undefined): LayoutStyle;
//# sourceMappingURL=layout.d.ts.map