Broken autobinding in arrow function for referenced node modules when using react-native with react-relay
I'm using react-native and react-relay, therefore I've the following .babelrc file: { "sourceMaps": "both", "presets": [ "./plugins/babelRelayPlugin", "react-native" ], "passPerPreset": true } Adding a dependency which uses arrow functions in their components as the MKIconToggle from react-native-material-kit ( https://github.com/xinthink/react-native-material-kit ) doesn't get transpiled correctly and the this reference is lost/wrong. The original code which ultimately causes the error looks like the following: _onLayout = (evt) => { this._onLayoutChange(evt.nativeEvent.layout); if (this