Mathieu Acthernoene 5 years ago
parent
commit
0a99bfa2ba
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      lib/permissions.ios.js

+ 1
- 1
lib/permissions.ios.js View File

31
 
31
 
32
 class ReactNativePermissions {
32
 class ReactNativePermissions {
33
   canOpenSettings: () => Promise<boolean> = () =>
33
   canOpenSettings: () => Promise<boolean> = () =>
34
-    PermissionsIOS.canOpenSettings();
34
+    PermissionsIOS.canOpenSettings().then(result => !!result);
35
 
35
 
36
   openSettings: () => Promise<*> = () => PermissionsIOS.openSettings();
36
   openSettings: () => Promise<*> = () => PermissionsIOS.openSettings();
37
 
37