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

25 lines
644 B

  1. 'use client';
  2. import { ImageBackground as RNImageBackground } from 'react-native';
  3. import React from 'react';
  4. import { tva } from '@gluestack-ui/nativewind-utils/tva';
  5. const imageBackgroundStyle = tva({});
  6. const ImageBackground = React.forwardRef<
  7. React.ComponentRef<typeof RNImageBackground>,
  8. React.ComponentProps<typeof RNImageBackground>
  9. >(function ImageBackground({ className, ...props }, ref) {
  10. return (
  11. <RNImageBackground
  12. className={imageBackgroundStyle({
  13. class: className,
  14. })}
  15. {...props}
  16. ref={ref}
  17. />
  18. );
  19. });
  20. ImageBackground.displayName = 'ImageBackground';
  21. export { ImageBackground };