UNPKG

@mobily/stacks

Version:

⚡ A set of useful components to help you build and maintain React Native (Web too) layouts with ease.

27 lines (26 loc) 1.32 kB
import { ScaledSize } from 'react-native'; import type { resolveResponsiveProp as $$resolveResponsiveProp } from './Stacks_types'; import type { responsiveProp as $$responsiveProp } from './Stacks_types'; import type { spacingHelpers as $$spacingHelpers } from './Stacks_types'; export declare type breakpoint = [string, number]; export declare type breakpoints = breakpoint[]; export declare type context = { readonly debug: boolean; readonly spacing: number; readonly breakpoints: breakpoints; readonly dimensions: ScaledSize; }; export declare type stretch = 'stretch'; export declare type axisX = 'left' | 'center' | 'right'; export declare type axisY = 'top' | 'center' | 'bottom'; export declare type space = 'between' | 'around' | 'evenly'; export declare type direction = 'row' | 'row-reverse' | 'column' | 'column-reverse'; export declare type wrap = 'wrap' | 'nowrap'; export declare type flex = 'content' | 'fluid' | '1/2' | '1/3' | '2/3' | '1/4' | '3/4' | '1/5' | '2/5' | '3/5' | '4/5'; export declare type responsiveProp<a> = $$responsiveProp<a>; export declare type resolveResponsiveProp<a> = $$resolveResponsiveProp<a>; export declare type collapsibleProps = { readonly direction: direction; readonly isCollapsed: boolean; }; export declare type spacingHelpers = $$spacingHelpers;