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

19 lines
539 B

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