-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add places accuracy #220
base: main
Are you sure you want to change the base?
Add places accuracy #220
Conversation
Merge down from Main -> Staging
@dsoffiantini can you take a look why the CI is failing? |
**Example** | ||
|
||
```typescript | ||
Places.setAccuracyAuthorization('fullAccuracy'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you remove the first 2 examples on directly using string instead of constant?
```typescript | ||
Places.setAccuracyAuthorization('fullAccuracy'); | ||
Places.setAccuracyAuthorization('reducedAccuracy'); | ||
Places.setAccuracyAuthorization(PlacesAccuracy.Full); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The other constants are fully capitalized. FULL / REDUCED
@@ -78,6 +78,12 @@ const setAuthorizationStatus = () => { | |||
console.log('Authorization status set'); | |||
}; | |||
|
|||
const setAccuracyAuthorization = () => { | |||
Places.setAccuracyAuthorization('fullAccuracy'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use PlacesAccuracy.FULL instead of hardcoded string.
Description
Adds iOS method for setting Accuracy in Places
How Has This Been Tested?
New unit tests added + sample app updated
Types of changes
Checklist: