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

Commit

Permalink
Merge pull request #1 from umfana/patch
Browse files Browse the repository at this point in the history
Change require to not access NativeModules directly, but rather via "…
  • Loading branch information
devfd committed Aug 9, 2015
2 parents 6ae01a6 + 2de3876 commit 2ffc331
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 2ffc331

Please sign in to comment.