Рет қаралды 870
In this video, I have discussed how you can get the location of the user with help of React Native's Geolocation API and found a lot of insights on it which I am sharing here.
I have discussed the following concepts on how you can,
1. Mock location in both Android emulator and iOS simulator.
2. How you can draw PolyLines on the map with react native maps' PolyLines when the user moves.
3. I also discussed differences between precise and approximate location permissions in android.
4. How you can get "Always On" Location permission in both android and iOS and the limitiations within the app.
Apps like Strava use this logic to get the user location and make those beautiful maps in mapbox.
If you want to make features like these in your application do contact me or if you want more indepth guide do let me know.
If you have any other queries, please leave it in the comments or contact me via email or Twitter (X).
Here is my Twitter (X) profile: x.com/gautham_...