From 8dea90ba8b5a6fe6fa4ded6650c2d347ffba397e Mon Sep 17 00:00:00 2001 From: Louis Lagrange Date: Sun, 23 Jul 2017 08:45:01 -0700 Subject: [PATCH] Update Images.md with ImageBackground Summary: This part of the documentation was outdated since v0.46. :) Closes https://github.com/facebook/react-native/pull/15151 Differential Revision: D5478408 Pulled By: shergin fbshipit-source-id: a9d442560ad2768a684b9bbb11285b5f20f9d00d --- docs/Images.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/Images.md b/docs/Images.md index 65ebc2903..d2eca6a99 100644 --- a/docs/Images.md +++ b/docs/Images.md @@ -186,13 +186,15 @@ On the user side, this lets you annotate the object with useful attributes such ## Background Image via Nesting -A common feature request from developers familiar with the web is `background-image`. To handle this use case, simply create a normal `` component and add whatever children to it you would like to layer on top of it. +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 very simple. Refer to ``'s [source code](https://github.com/facebook/react-native/blob/master/Libraries/Image/ImageBackground.js) for more insight, and create your own custom component when needed. ```javascript return ( - + Inside - + ); ```