ImageBackground

An image component with support for child content.

import { ImageBackground } from 'react-native';

<ImageBackground {...props}>{children}</ImageBackground>;

API

Props

...ImageProps ?ImageProps

All the props supported by Image.

children ?any

Content to display over the image.

imageStyle ?Style

Styles to forward to the image component.

Examples

Updated
Edit
React Native for WebCopyright © Nicolas Gallagher and Meta Platforms, Inc.