UNPKG

@nexara/nativeflow

Version:

Beautiful, responsive, and customizable UI components for React Native – built for performance and seamless experiences.

57 lines (47 loc) 1.35 kB
import React from "react"; import type { FlexStyle, StyleProp, ViewStyle } from "react-native"; import type { StyledViewProps } from "./styledComponents.type"; export type HStackProps = StyledViewProps & { /** * Defines the alignment of children along the main axis. */ justify?: FlexStyle['justifyContent']; /** * Defines the alignment of children along the cross axis. */ align?: FlexStyle['alignItems']; /** * Determines whether the items should wrap onto multiple lines. */ fWrap?: FlexStyle['flexWrap']; /** * Space between child components. */ gap?: number; /** * Custom styles for the container. */ style?: StyleProp<ViewStyle>; /** * Child components to be rendered inside the HStack. */ children?: React.ReactNode; }; export type VStackProps = StyledViewProps & { /** * Child components to be rendered inside the VStack. */ children?: React.ReactNode; /** * Defines the alignment of children along the cross axis. */ align?: FlexStyle['alignItems']; /** * Space between child components. */ gap?: number; /** * Custom styles for the container. */ style?: StyleProp<ViewStyle>; };