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

undefined is not an object (evaluating 'RNGeocoder.geocodePosition') #63

Open
joaoalbertocsjunior opened this issue Dec 3, 2017 · 4 comments

Comments

@joaoalbertocsjunior
Copy link

Im getting this message, when trying to do reverse geocoding on rn using this package.

The code is as follows:

import Geocoder from 'react-native-geocoder';
locationPos = {
      lat: positionToInsert.latitude,
      lng: positionToInsert.longitude
    }
Geocoder.geocodePosition(locationPos).then(res => {
      this.setState({locPos: res[0].formattedAddress})
    })
    .catch(err => console.log(err))
@henninghall
Copy link

@joaoalbertocsjunior Did you forget to add libRNGeocoder.a file to build phases?

@ameshkin
Copy link

I did add the library and I'm still getting this error.

@alexandrius
Copy link

just use react-native link react-native-geocoder and pod update

@gouravrc
Copy link

gouravrc commented May 3, 2020

@joaoalbertocsjunior try to put libRNGeocoder.a in Target > Build phase > Link Libraries

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants