You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
608 B
25 lines
608 B
import React from 'react';
|
|
import type { VariantProps } from '@gluestack-ui/nativewind-utils';
|
|
import { View } from 'react-native';
|
|
|
|
import { vstackStyle } from './styles';
|
|
|
|
type IVStackProps = React.ComponentProps<typeof View> &
|
|
VariantProps<typeof vstackStyle>;
|
|
|
|
const VStack = React.forwardRef<React.ElementRef<typeof View>, IVStackProps>(
|
|
({ className, space, reversed, ...props }, ref) => {
|
|
return (
|
|
<View
|
|
className={vstackStyle({ space, reversed, class: className })}
|
|
{...props}
|
|
ref={ref}
|
|
/>
|
|
);
|
|
}
|
|
);
|
|
|
|
VStack.displayName = 'VStack';
|
|
|
|
export { VStack };
|