UNPKG

expo-image

Version:

A cross-platform, performant image component for React Native and Expo with Web support

13 lines 450 B
import React from 'react'; import { View, StyleSheet } from 'react-native'; import { Image } from './Image'; export class ImageBackground extends React.PureComponent { render() { const { style, imageStyle, children, ...props } = this.props; return (<View style={style}> <Image {...props} style={[StyleSheet.absoluteFill, imageStyle]}/> {children} </View>); } } //# sourceMappingURL=ImageBackground.js.map