Skip to content

Instantly share code, notes, and snippets.

@grabbou
Last active August 29, 2015 14:25
Show Gist options
  • Save grabbou/0f701bc2c081ea41a947 to your computer and use it in GitHub Desktop.
Save grabbou/0f701bc2c081ea41a947 to your computer and use it in GitHub Desktop.
ES6 in React-Native
import {
View
} from 'react-native';
// not rewritten to react-native/....../react-native.js, cannot find module 'react-native';
// output looks like
// var _reactNative=require(
//
//
//'react-native');
// note line breakes in output
import {View} from 'react-native'
// rewritten properly
// Any line breakes will break ANY import, even locals
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment