Closed thitemple closed 6 years ago
Nevermind, I realized now i just need to use this:
Fable.Import.Browser.navigator.geolocation.getCurrentPosition
Great that you found the solution! I'm closing the issue for now, but please feel free to reopen if you have another question :+1:
Hi there,
I'm trying to get the current position of my phone doing this:
Fable.Import.ReactNative.Globals.Geolocation.getCurrentPosition (fun pos -> Browser.console.log ("currentPosition", pos))
But this yields the following error:
undefined is not an object (evaluating _reactNative.Geolocation.getCurrentPosition
How can I do it?