Skip to content
This repository has been archived by the owner on Sep 4, 2021. It is now read-only.

Commit

Permalink
Change require to not access NativeModules directly, but rather via "…
Browse files Browse the repository at this point in the history
…react-native" and make library compatible with React Native ^0.7.0
  • Loading branch information
RoryCombe committed Aug 8, 2015
1 parent 6ae01a6 commit 2de3876
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
var RNGeocoder = require('NativeModules').RNGeocoder;

var {
NativeModules: {
RNGeocoder
}
} = require('react-native');

var Geocoder = {

Expand Down

0 comments on commit 2de3876

Please sign in to comment.