Open isabelrios opened 8 years ago
@gmarty perhaps we should be calculating distance for virtual beacons before they are used in any view so that we can show distance and sort in list view.
The calculation must still be done in JavaScript-land and via React so they get updated whenever the user location changes. I guess the fix is to do computation in the ListView component too.
If this is not working, I think we should not show this setting in the Release builds as we did with with "Show distance" setting. What do you think @wilsonpage @arcturus ?
Steps Turn on Sort by distance settings Fake position 1 Open the app with POI1, POI2 Fake position to a different position 2 with POI3
Actual The list view shows PO1, PO2 and POI3 in that order
Expected POI3 should be the first one in the list after changing the position