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

'use client';
import { ImageBackground as RNImageBackground } from 'react-native';
import React from 'react';
import { tva } from '@gluestack-ui/nativewind-utils/tva';
const imageBackgroundStyle = tva({});
const ImageBackground = React.forwardRef<
React.ComponentRef<typeof RNImageBackground>,
React.ComponentProps<typeof RNImageBackground>
>(function ImageBackground({ className, ...props }, ref) {
return (
<RNImageBackground
className={imageBackgroundStyle({
class: className,
})}
{...props}
ref={ref}
/>
);
});
ImageBackground.displayName = 'ImageBackground';
export { ImageBackground };