import {createContext, useContext, useMemo} from 'react' import {View} from 'react-native' import {atoms as a, type ViewStyleProp} from '#/alf' const Context = createContext({ gap: 0, }) Context.displayName = 'GridContext' export function Row({ children, gap = 0, style, }: ViewStyleProp & { children: React.ReactNode gap?: number }) { return ( ({gap}), [gap])}> {children} ) } export function Col({ children, width = 1, style, }: ViewStyleProp & { children: React.ReactNode width?: number }) { const {gap} = useContext(Context) return ( {children} ) }