Mathieu Acthernoene 5 lat temu
rodzic
commit
0a99bfa2ba
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1
    1
      lib/permissions.ios.js

+ 1
- 1
lib/permissions.ios.js Wyświetl plik

@@ -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