capacitor-community / react-hooks

⚡️ React hooks for Capacitor ⚡️
Other
246 stars 22 forks source link

Add manual flag to useCurrentPosition hook #2

Closed ryanencoded closed 4 years ago

ryanencoded commented 4 years ago

This provides an optional flag that will allow a developer to manually invoke the currentPosition the first time or for it to automatically grab it. This is to allow developers full control over when we want to get the currentPosition or not.

elylucas commented 4 years ago

Thanks for the PR!