metro/react-packager/src/JSTransformer
David Aurelio dee7aadd28 inline `Platform.select`
Summary: We are already inlining `Platform.OS`. This diff adds support to inline calls to `Platform.select` with an object literal as first argument. The transform will replace the call with the property value corresponding to the platform, or `undefined` if it does not exist.

Reviewed By: frantic

Differential Revision: D3385391

fbshipit-source-id: bb068d17948ed84e381707faeaa0450399c2f306
2016-06-05 05:58:20 -07:00
..
__mocks__ Replace underscore by lodash 2016-03-09 03:09:44 -08:00
__tests__ Update Jest APIs on fbsource 2016-04-27 19:16:32 -07:00
worker inline `Platform.select` 2016-06-05 05:58:20 -07:00
README.md [react-packager][streamline oss] Move open sourced JS source to react-native-github 2015-02-19 21:25:11 -08:00
index.js transform before extracting dependencies 2016-03-08 09:51:26 -08:00

README.md