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

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

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