Skip to content

Commit 88a227a

Browse files
authored
Update README.md
1 parent 3f40838 commit 88a227a

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

README.md

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -735,8 +735,6 @@ check(PERMISSIONS.IOS.LOCATION_ALWAYS)
735735
});
736736
```
737737

738-
---
739-
740738
#### request
741739

742740
Request one permission.
@@ -766,14 +764,10 @@ request(PERMISSIONS.IOS.LOCATION_ALWAYS).then((result) => {
766764
});
767765
```
768766

769-
---
770-
771767
#### checkNotifications
772768

773769
Check notifications permission status and get notifications settings values.
774770

775-
_⚠️  Android will never return `blocked` on `checkNotifications`, you have to call `requestNotifications` to get the info._
776-
777771
```ts
778772
type NotificationSettings = {
779773
// properties only available on iOS
@@ -803,8 +797,6 @@ checkNotifications().then(({status, settings}) => {
803797
});
804798
```
805799

806-
---
807-
808800
#### requestNotifications
809801

810802
Request notifications permission status and get notifications settings values.
@@ -851,8 +843,6 @@ requestNotifications(['alert', 'sound']).then(({status, settings}) => {
851843
});
852844
```
853845

854-
---
855-
856846
#### checkMultiple
857847

858848
Check multiples permissions in parallel.
@@ -874,8 +864,6 @@ checkMultiple([PERMISSIONS.IOS.CAMERA, PERMISSIONS.IOS.FACE_ID]).then((statuses)
874864
});
875865
```
876866

877-
---
878-
879867
#### requestMultiple
880868

881869
Request multiple permissions in sequence.
@@ -895,8 +883,6 @@ requestMultiple([PERMISSIONS.IOS.CAMERA, PERMISSIONS.IOS.FACE_ID]).then((statuse
895883
});
896884
```
897885

898-
---
899-
900886
#### openSettings
901887

902888
Open application settings.
@@ -911,8 +897,6 @@ import {openSettings} from 'react-native-permissions';
911897
openSettings().catch(() => console.warn('cannot open settings'));
912898
```
913899

914-
---
915-
916900
#### openPhotoPicker (iOS 14+)
917901

918902
Open a picker to update the photo selection when `PhotoLibrary` permission is `limited`. This will reject if unsupported or if full permission is already `granted`.
@@ -929,8 +913,6 @@ openPhotoPicker().catch(() => {
929913
});
930914
```
931915

932-
---
933-
934916
#### checkLocationAccuracy (iOS 14+)
935917

936918
When `LocationAlways` or `LocationWhenInUse` is `granted`, allow checking if the user share his precise location.
@@ -949,8 +931,6 @@ checkLocationAccuracy()
949931
.catch(() => console.warn('Cannot check location accuracy'));
950932
```
951933

952-
---
953-
954934
#### requestLocationAccuracy (iOS 14+)
955935

956936
When `LocationAlways` or `LocationWhenInUse` is `granted`, allow requesting the user for his precise location. Will resolve immediately if `full` accuracy is already authorized.

0 commit comments

Comments
 (0)