廓形仪rn版本-技术调研
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.

24 lines
622 B

  1. import React from 'react';
  2. import type { VariantProps } from '@gluestack-ui/nativewind-utils';
  3. import { View } from 'react-native';
  4. import { vstackStyle } from './styles';
  5. type IVStackProps = React.ComponentProps<typeof View> &
  6. VariantProps<typeof vstackStyle>;
  7. const VStack = React.forwardRef<React.ComponentRef<typeof View>, IVStackProps>(
  8. function VStack({ className, space, reversed, ...props }, ref) {
  9. return (
  10. <View
  11. className={vstackStyle({ space, reversed, class: className })}
  12. {...props}
  13. ref={ref}
  14. />
  15. );
  16. }
  17. );
  18. VStack.displayName = 'VStack';
  19. export { VStack };