From deeab95edb37f8285b8820ba21c682e26ff100ff Mon Sep 17 00:00:00 2001 From: Alex Kotliarskyi Date: Tue, 20 Oct 2015 11:05:16 -0700 Subject: [PATCH] Add note about new assets and older react-native projects --- docs/Images.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/Images.md b/docs/Images.md index b4210d44812c52..b4178a42ef8899 100644 --- a/docs/Images.md +++ b/docs/Images.md @@ -60,6 +60,8 @@ var icon = this.props.active ? require('./my-icon-active.png') : require('./my-i ``` +NOTE: This system relies on build hooks for [Xcode](https://github.com/facebook/react-native/pull/3523) and [Gradle](https://github.com/facebook/react-native/commit/9dc036d2b99e6233297c55a3490bfc308e34e75f) that are included in new projects generated with `react-native init`. If you generated your projects before that, you'll have to manually add them to your projects to use the new images asset system. + ## Images From Hybrid App's Resources If you are building a hybrid app (some UIs in React Native, some UIs in platform code) you can still use images that are already bundled into the app (via Xcode asset catalogs or Android drawable folder):