Agontuk / react-native-geolocation-service

React native geolocation service for iOS and android
https://www.npmjs.com/package/react-native-geolocation-service
MIT License
1.61k stars 292 forks source link

[TypeError: null is not an object (evaluating 'RNFusedLocation.getCurrentPosition')] #246

Closed Lain27 closed 3 years ago

Lain27 commented 3 years ago

i followed the setup and i keep getting [TypeError: null is not an object (evaluating 'RNFusedLocation.getCurrentPosition')]

Geolocation.getCurrentPosition( (position) => { console.log(position); }, (error) => { console.log(error.code, error.message); }, {enableHighAccuracy: true, timeout: 15000, maximumAge: 10000}, );

Lain27 commented 3 years ago

Fixed by rebuilding the project

ImanEmadi commented 3 years ago

what Emulator are you using ? i am having exact same problem , in Nox player emulator , but re bundling it ( plus all available solutions on internet ) did NOT fix the problem ...

muttaqeen93 commented 3 years ago

can you help how to get rid of this issue please