<NME> index.js
<BEF> var RNGeocoder = require('NativeModules').RNGeocoder;


var Geocoder = {


<MSG> Change require to not access NativeModules directly, but rather via "react-native" and make library compatible with React Native ^0.7.0

<DFF> @@ -1,5 +1,8 @@
-var RNGeocoder = require('NativeModules').RNGeocoder;
-
+var {
+  NativeModules: {
+    RNGeocoder
+  }
+} = require('react-native');
 
 var Geocoder = {
 

{'addition_count': 5, 'commit_subject': 'Change require to not access NativeModules directly, but rather via "react-native" and make library compatible with React Native ^0.7.0', 'deletion_count': 2, 'file_extension': '.js', 'lang': 'js', 'license': 'mit', 'repo_name': 'devfd/react-native-geocoder'}