timfpark/react-native-location

TypeError: null is not an object (evaluating 'nativeInterface.configure')

Opened this issue · 5 comments

Hi coders

I am using version 2.5.0
I've tried the example setup in a test app and it works, but when I try it in my app it returns this error.
I am testing it on a physical device with Android 7.0.
This is the configuration that I apply.

  componentWillMount() {
    RNLocation.configure({
      distanceFilter: 5.0
    });
    
    RNLocation.requestPermission({
      ios: "whenInUse",
      android: {
        detail: "fine",
        rationale: {
          title: "Location permission",
          message: "We use your location to demo the library",
          buttonPositive: "OK",
          buttonNegative: "Cancel"
        }
      }
    }).then(granted => {
      if (granted) {
        this._startUpdatingLocation();
      }
    });
  }

image
image

I have the same problem with 2.4.0 version

I have same issue
any one find solution ?

any solution to this please, I am trying this in expo, is that a reason, I don't seem to know how to go about this.

I am still experiencing this problem, any solution?

I too have the same error