File tree Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -14,8 +14,6 @@ import {
1414
1515import { ANDROID , IOS , PERMISSIONS , RESULTS } from './constants' ;
1616
17- const NativePermissionsAndroid = NativeModules . PermissionsAndroid ;
18-
1917const RNPermissions : {
2018 // Android + iOS
2119 checkNotifications : ( ) => Promise < NotificationsResponse > ;
@@ -93,15 +91,9 @@ export async function check(permission: Permission): Promise<PermissionStatus> {
9391
9492 const nonRequestables = await RNPermissions . getNonRequestables ( ) ;
9593
96- if ( ! nonRequestables . includes ( permission ) ) {
97- return RESULTS . DENIED ;
98- }
99-
100- return ( await NativePermissionsAndroid . shouldShowRequestPermissionRationale (
101- permission ,
102- ) )
103- ? RESULTS . DENIED
104- : RESULTS . BLOCKED ;
94+ return nonRequestables . includes ( permission )
95+ ? RESULTS . BLOCKED
96+ : RESULTS . DENIED ;
10597}
10698
10799export async function request (
You can’t perform that action at this time.
0 commit comments