Please provide the following:
- SDK Version: 44.0.0
- Platforms(Android/iOS/web/all): all
- Add the appropriate “Tag” based on what Expo library you have a question on.
Hello, I am quite new to Expo and RN in general, and I am wondering if there is any way to set a timeout when requesting the current location:
const currentPosition = await Location.getCurrentPositionAsync({
enableHighAccuracy: true,
});
Or if there is a way to cancel the request after a while, because it seems to keep trying forever when it can’t get the location.
Thanks.