question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError: null is not an object (evaluating 'RNFusedLocation.startObserving')

See original GitHub issue
    Geolocation.clearWatch(this.watchID);
    this.watchID = Geolocation.watchPosition(
      position => {
        console.log("New position!");
      },
      error => console.log(error),
      {
        enableHighAccuracy: true,
        timeout: 20000,
        distanceFilter: 0
      }
    );

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:24 (7 by maintainers)

github_iconTop GitHub Comments

9reactions
sjitprogrammercommented, Feb 10, 2020

“react-native”: “0.61.5”, “react-native-geolocation-service”: “^4.0.0”, “react-native-maps”: “^0.26.1”

Check These lines added in your MainApplication.java

import com.agontuk.RNFusedLocation.RNFusedLocationPackage;

add new RNFusedLocationPackage() in

@Override protected List<ReactPackage> getPackages() { return Arrays.<ReactPackage>asList( new MainReactPackage(), new MapsPackage(), new RNFusedLocationPackage()

        );
    }

It fixes my issue

7reactions
ronsivan1commented, Sep 1, 2019

It fixed for me after I did react-native run-android

Read more comments on GitHub >

github_iconTop Results From Across the Web

reactjs - im getting [TypeError: null is not an object (evaluating ...
im getting [TypeError: null is not an object (evaluating 'RNFusedLocation.getCurrentPosition')] when using react-native-geolocation-service.
Read more >
React native geolocation service for iOS and android
TypeError : null is not an object (evaluating 'RNFusedLocation.startObserving'). Geolocation.clearWatch(this.watchID); this.watchID = Geolocation.
Read more >
null is not an object evaluating RNFS | Urdu & Hindi | Lecture # 9
In the video you will learn to fix the Error in React-Rative, Native module cannot be null or null is not an object...
Read more >
null is not an object when evaluating this.state-React Native
when I navigate to this page · im getting [TypeError: null is not an object (evaluating 'RNFusedLocation.getCurrentPosition')] when using ...
Read more >
TypeError: null is not an object (evaluating 'RNFusedLocation ...
null is not an object (evaluating 'rnfusedlocation.getcurrentposition'). Add Answer | View In TPC Matrix. Technical Problem Cluster First Answered On June ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found