-
Notifications
You must be signed in to change notification settings - Fork 595
Updated readme for directions when supporting Android M or above #119
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
Conversation
7f5ac46 to
be94eba
Compare
morenoh149
left a comment
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.
Please restore the newlines here, by restoring the carriage return or adding bullet points. And squash commits.
|
|
||
|
|
||
| ## API | ||
| `getAll` (callback) - returns *all* contacts as an array of objects |
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.
looks like the whitespace removed here removed the newlines? These should each be rendered on their own line.
| ``` | ||
|
|
||
| ## Permissions Methods (optional) | ||
| `checkPermission` (callback) - checks permission to access Contacts. |
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.
newlines were removed here also
README.md
Outdated
|
|
||
| #### Permissions on Android M and greater | ||
|
|
||
| Because permissions need need to be granted at time of use in Android M, use [`react-native-android-permissions`](https://github.com/lucasferreira/react-native-android-permissions) to request permissions if you support Android M or above. |
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.
Because permissions need need to be granted -> Because permissions need to be granted
|
could you briefly explain to me now, when would an Android M user ever use the old |
be94eba to
f79f9f6
Compare
|
@morenoh149 - The old
An alternative approach would be to wrap usage of |
|
@morenoh149 - removed spacing. Ready for review. |
|
@theseansy If i'm reading correctly it looks like that module (https://github.com/lucasferreira/react-native-android-permissions) has been merged into RN proper (facebook/react-native#9292) and the repository for react-native-android-permissions now lists it as a deprecated module! We can now user which means we could update the internal API of this module to use that as well (as you suggested) |
|
@SRandazzo - awesome. Will close. |
See #115 for more info. @morenoh149
Closes #115