Files
Schnappix/node_modules/expo-image/src/ImageBackground.tsx
T
2026-05-31 20:50:37 +02:00

17 lines
424 B
TypeScript

'use client';
import React from 'react';
import { View, StyleSheet } from 'react-native';
import { Image } from './Image';
import { ImageBackgroundProps } from './Image.types';
export function ImageBackground({ style, imageStyle, children, ...props }: ImageBackgroundProps) {
return (
<View style={style}>
<Image {...props} style={[StyleSheet.absoluteFill, imageStyle]} />
{children}
</View>
);
}