diff --git a/docs/imagebackground.md b/docs/imagebackground.md index d3d40b2a844..66ee0f9a198 100644 --- a/docs/imagebackground.md +++ b/docs/imagebackground.md @@ -1,8 +1,12 @@ --- id: imagebackground -title: ImageBackground +title: '🗑️ ImageBackground' --- +:::warning[Deprecated] +Use a [`View`](view.md) with an absolutely positioned [`Image`](image.md) instead. +::: + A common feature request from developers familiar with the web is `background-image`. To handle this use case, you can use the `` component, which has the same props as ``, and add whatever children to it you would like to layer on top of it. You might not want to use `` in some cases, since the implementation is basic. Refer to ``'s [source code](https://github.com/facebook/react-native/blob/main/packages/react-native/Libraries/Image/ImageBackground.js) for more insight, and create your own custom component when needed. diff --git a/website/versioned_docs/version-0.87/imagebackground.md b/website/versioned_docs/version-0.87/imagebackground.md index d3d40b2a844..66ee0f9a198 100644 --- a/website/versioned_docs/version-0.87/imagebackground.md +++ b/website/versioned_docs/version-0.87/imagebackground.md @@ -1,8 +1,12 @@ --- id: imagebackground -title: ImageBackground +title: '🗑️ ImageBackground' --- +:::warning[Deprecated] +Use a [`View`](view.md) with an absolutely positioned [`Image`](image.md) instead. +::: + A common feature request from developers familiar with the web is `background-image`. To handle this use case, you can use the `` component, which has the same props as ``, and add whatever children to it you would like to layer on top of it. You might not want to use `` in some cases, since the implementation is basic. Refer to ``'s [source code](https://github.com/facebook/react-native/blob/main/packages/react-native/Libraries/Image/ImageBackground.js) for more insight, and create your own custom component when needed.