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

  For TV Examples: LRUD navigation is already enabled in this sandbox. Use your keyboard arrow keys to move focus.

Updated
React Native Web for TVPortions Copyright © Nicolas Gallagher, Meta Platforms, Inc., Facebook, Inc. and affiliates, and other contributors as noted in file headers and THIRD_PARTY_NOTICES.md. Modifications and TV extensions Copyright © Harpreet Singh and contributors.