What is the difference between UserLocation and LocationPuck ? #3325
-
I was wondering what are the difference between both components ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
LocationPuck is native while UserLocation is react-native. So UserLocation causes a pre-render on each location update. So if LocationPuck works for you that's preferred for performance reasons, but UserLocation should be ok as well. On longer term we might (or might not) deprecate UserLocation in favour of LocationPuck. |
Beta Was this translation helpful? Give feedback.
You can get the current location via locationManager
https://github.com/rnmapbox/maps/blob/main/src/modules/location/locationManager.ts