廓形仪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.

23 lines
642 B

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