expo-location: watchHeadingAsync timeInterval #24268
gcmazzardo
started this conversation in
Proposals and Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a specific reason why there is no way to specify a
timeIntervalbetweenwatchHeadingAsync()executions?When keeping heading updated in a State, it ends up being modified several times per second, causing multiple rerenderings.
The fact that
watchPositionAsync()does have a timeInterval option on its LocationOptions andwatchHeadingAsync()doesnt have anything similar is kinda...weird?I think it would be amazing if there was any way to prevent that much updates without the need to rely on other "non-official" solutions (I was able to implement similar behavior as desired using setInterval/clearInterval).
Beta Was this translation helpful? Give feedback.
All reactions