Mathieu Acthernoene 6 年之前
父節點
當前提交
0a99bfa2ba
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      lib/permissions.ios.js

+ 1
- 1
lib/permissions.ios.js 查看文件

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