Adam Comella fde7c35449 Make resolveAssetSource public
Summary:
When building a native component which takes an image reference as a prop, `resolveAssetSource` needs to be called on the image reference. If this isn't done, the native component may receive the opaque type returned by `require` (e.g. `require('./foo.png')`) which is useless to the native component. `resolveAssetSource` is used by builtin components that take image references such as `Image`, `WebView` and `MapView`.

This change makes `resolveAssetSource` public so that third-party native components can correctly handle image references.

**Test plan (required)**

Verified that `Image.resolveAssetSource` works in a test app. Also, my team is using this change in our app.

Adam Comella
Microsoft Corp.
Closes https://github.com/facebook/react-native/pull/10904

Differential Revision: D4177803

Pulled By: ericvicenti

fbshipit-source-id: ffc511b9340325f7d1111002309cd8558ab8e6b0
2016-11-14 21:14:10 -08:00
..
2016-10-14 08:13:55 -07:00
2016-11-04 05:43:44 -07:00
2016-11-14 20:45:17 -08:00
2016-11-04 05:43:44 -07:00
2016-10-12 19:28:42 -07:00
2016-11-14 21:14:10 -08:00
2016-11-04 05:43:44 -07:00
2016-11-04 05:43:44 -07:00
2016-11-02 12:29:15 -07:00
2016-08-09 06:43:46 -07:00
2016-11-04 18:43:42 -07:00
2016-11-08 12:43:48 -08:00
2016-11-04 05:43:44 -07:00
2016-11-04 05:43:44 -07:00
2016-11-14 20:45:17 -08:00
2016-07-25 03:43:29 -07:00
2016-08-09 06:43:46 -07:00
2016-11-04 05:43:44 -07:00
2016-08-12 07:28:38 -07:00