Skip to content

Commit

Permalink
refactor: update runtime permissions wording and move to another sect…
Browse files Browse the repository at this point in the history
…ion (#71)
  • Loading branch information
kirillzyusko authored Mar 16, 2023
1 parent 467f3a3 commit 801905c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@ npm install react-native-wifi-p2p --save
...
```

> **Note**: if you are targeting Android 13+ you also need to ask `NEARBY_WIFI_DEVICES` permission in runtime. You can do it using `react-native-permissions` library.
### Link library
> **Note**: You should skip it if you use react-native >0.60
* Append the following lines to `android/settings.gradle`
Expand Down Expand Up @@ -434,6 +432,8 @@ On Android >= 6.0 you should ask permissions before usage of this library (since
> **Note:** on Android 10 you will probably need to ask `ACCESS_FINE_LOCATION` instead of `ACCESS_COARSE_LOCATION`.
> **Note**: if you are targeting Android 13+ you also need to ask `NEARBY_WIFI_DEVICES` permission in runtime. You can do it using `react-native-permissions` library, if you are using react-native < 0.70
```javascript
import { PermissionsAndroid } from 'react-native';
...
Expand Down

0 comments on commit 801905c

Please sign in to comment.