Skip to content

Commit deeab95

Browse files
committed
Add note about new assets and older react-native projects
1 parent 73383ea commit deeab95

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/Images.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ var icon = this.props.active ? require('./my-icon-active.png') : require('./my-i
6060
<Image source={icon} />
6161
```
6262

63+
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.
64+
6365
## Images From Hybrid App's Resources
6466

6567
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):

0 commit comments

Comments
 (0)