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

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

Open

Description

@joaoalbertocsjunior

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))

Activity

  1. henninghall commented on Jan 5, 2018

    @henninghall

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

  2. ameshkin commented on Aug 28, 2018

    @ameshkin

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

  3. alexandrius commented on Jan 9, 2019

    @alexandrius

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

  4. gouravrc commented on May 3, 2020

    @gouravrc

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions