{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/2992","labels_url":"https://api.github.com/repos/facebook/react-native/issues/2992/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/2992/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/2992/events","html_url":"https://github.com/facebook/react-native/issues/2992","id":108042264,"number":2992,"title":"Add es7.classProperties to Babel whitelist","user":{"login":"idibidiart","id":1288823,"avatar_url":"https://avatars.githubusercontent.com/u/1288823?v=3","gravatar_id":"","url":"https://api.github.com/users/idibidiart","html_url":"https://github.com/idibidiart","followers_url":"https://api.github.com/users/idibidiart/followers","following_url":"https://api.github.com/users/idibidiart/following{/other_user}","gists_url":"https://api.github.com/users/idibidiart/gists{/gist_id}","starred_url":"https://api.github.com/users/idibidiart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idibidiart/subscriptions","organizations_url":"https://api.github.com/users/idibidiart/orgs","repos_url":"https://api.github.com/users/idibidiart/repos","events_url":"https://api.github.com/users/idibidiart/events{/privacy}","received_events_url":"https://api.github.com/users/idibidiart/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-09-24T02:06:41Z","updated_at":"2015-09-24T05:02:51Z","closed_at":null,"body":"Need to be able to use fat arrow functions as class properties so it will auto-bind \r\n```\r\nclass MyComponent extends React.Component {  \r\n  \r\n constructor(props) { ... }\r\n\r\n  // this currently throws an Unknown token error \r\n  handler = (e) => { this.setState({blah: true}) }\r\n\r\n  render() {\r\n    return <TouchableHighlight onPress={this.handler}><Text>something</Text></TouchableHighlight>;\r\n  }\r\n}\r\n```\r\n// I find it silly to have to do this.handler = this.handler.bind(this) in the constructor ...\r\n\r\n "},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/142812208","html_url":"https://github.com/facebook/react-native/issues/2992#issuecomment-142812208","issue_url":"https://api.github.com/repos/facebook/react-native/issues/2992","id":142812208,"user":{"login":"ide","id":379606,"avatar_url":"https://avatars.githubusercontent.com/u/379606?v=3","gravatar_id":"","url":"https://api.github.com/users/ide","html_url":"https://github.com/ide","followers_url":"https://api.github.com/users/ide/followers","following_url":"https://api.github.com/users/ide/following{/other_user}","gists_url":"https://api.github.com/users/ide/gists{/gist_id}","starred_url":"https://api.github.com/users/ide/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ide/subscriptions","organizations_url":"https://api.github.com/users/ide/orgs","repos_url":"https://api.github.com/users/ide/repos","events_url":"https://api.github.com/users/ide/events{/privacy}","received_events_url":"https://api.github.com/users/ide/received_events","type":"User","site_admin":false},"created_at":"2015-09-24T05:02:51Z","updated_at":"2015-09-24T05:02:51Z","body":"Yeah in the root of your project works. You might need to clear out the transform cache in `$TMPDIR/react-*` too. Babel will compose settings so you only need a handful of options. This is what I use:\r\n\r\n```\r\n{\r\n  \"whitelist\": [\r\n    \"es6.constants\",\r\n    \"es6.modules\",\r\n    \"es7.classProperties\",\r\n    \"es7.decorators\",\r\n    \"es7.doExpressions\",\r\n  ]\r\n}\r\n```"}}