|
|
|
|
10
|
|
10
|
|
11
|
## Support
|
11
|
## Support
|
12
|
|
12
|
|
13
|
-| version | react-native version |
|
|
|
14
|
-| ------- | -------------------- |
|
|
|
15
|
-| 2.0.0+ | 0.60.0+ |
|
|
|
16
|
-| 1.2.1 | 0.56.0 - 0.59.10 |
|
|
|
17
|
-
|
|
|
18
|
-_You can use 2.0.0 with 0.59.10- with the [`jetify -r`](https://github.com/mikehardy/jetifier/blob/master/README.md#to-reverse-jetify--convert-node_modules-dependencies-to-support-libraries) `postinstall` command._
|
|
|
|
|
13
|
+| version | react-native version |
|
|
|
14
|
+| ------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------- |
|
|
|
15
|
+| 2.0.0+ | 0.60.0+ |
|
|
|
16
|
+| 2.0.0+ & [`jetify -r`](https://github.com/mikehardy/jetifier/blob/master/README.md#to-reverse-jetify--convert-node_modules-dependencies-to-support-libraries) | 0.56.0 - 0.59.10 |
|
19
|
|
17
|
|
20
|
## Setup
|
18
|
## Setup
|
21
|
|
19
|
|
|
|
|
|
569
|
_⚠️ It's a very bad UX pattern, avoid doing it!_
|
567
|
_⚠️ It's a very bad UX pattern, avoid doing it!_
|
570
|
|
568
|
|
571
|
```js
|
569
|
```js
|
572
|
-import {check, request, PERMISSIONS} from 'react-native-permissions';
|
|
|
|
|
570
|
+import {request, PERMISSIONS} from 'react-native-permissions';
|
573
|
|
571
|
|
574
|
// should be done in sequence
|
572
|
// should be done in sequence
|
575
|
async function requestAll() {
|
573
|
async function requestAll() {
|