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:
- Created 4 years ago
- Reactions:3
- Comments:24 (7 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
“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
It fixed for me after I did
react-native run-android