react-native-reverse-geo
React Native module bridge to convert address to geo coordinates.
Makes use of the following native iOS classes:
API
Getting Started (and running the demo project)
- From inside your project run
npm install react-native-reverse-geo --save
- In XCode, in the project navigator, right click
Libraries
➜Add Files to [your project's name]
- Go to
node_modules
➜react-native-reverse-geo
and addRNReverseGeo.xcodeproj
- In XCode, in the project navigator, select your project. Add
libRNReverseGeo.a
to your project'sBuild Phases
➜Link Binary With Libraries
- Click
RNReverseGeo.xcodeproj
in the project navigator and go theBuild Settings
tab. Make sure 'All' is toggled on (instead of 'Basic'). Look forHeader Search Paths
and make sure it contains both$(SRCROOT)/../react-native/React
and$(SRCROOT)/../../React
- mark both asrecursive
. - RNReverseGeoRun your project (
Cmd+R
)
Usage Example
var React = ; // Load Up our Native Module..var RNReverseGeo = ; { return reverseGeoResults: "Loading..." ; } { var that = this; RNReverseGeo; }
There is an example project supplied with the repo in the RNReverseGeoDemo folder.