Stable version for React Native 0.73
Hi all,
Please let me know which version is the most stable to use for [email protected] and [email protected]?
I am using [email protected] (seems to be the latest), but it is not working properly on Android (on iOS, it is really great).
The problem I am facing is that sometimes it does not get GPS (using watchPosition), or sometimes it is very slow, around 3-5 minutes.
I have tested on several Android devices, and all have this issue.
Below is my code:
const config = Platform.OS === "ios" ? {
maximumAge: 2000,
distanceFilter: 15,
enableHighAccuracy: true,
accuracy: "bestForNavigation",
timeout: 10000,
} : {
interval: 1000,
maximumAge: 5000,
distanceFilter: 10,
enableHighAccuracy: false,
// accuracy: "best",
timeout: 15000,
forceRequestLocation: true,
};
Geolocation.watchPosition(
geoSuccess,
geoError,
config
);
We're using geolocation ^3.4.0 with react native 0.74.6 and raect 18.2 with no issues, some watch warnings here and there but in general ok and stable
I have the same problem.
RN: 0.77.0, React 18.3.1