What device are you running on? It’s possible that your app doesn’t have geolocation permissions and isn’t returning anything.
What device are you running on?
Spencer Carli
1

Figured it out..since the initial values were null they were being passed on before the navigator could fetch the real values.. I just had to wait till the values are fetched and then update them.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.