We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8f0ca0 commit 0a99bfaCopy full SHA for 0a99bfa
lib/permissions.ios.js
@@ -31,7 +31,7 @@ const DEFAULTS = {
31
32
class ReactNativePermissions {
33
canOpenSettings: () => Promise<boolean> = () =>
34
- PermissionsIOS.canOpenSettings();
+ PermissionsIOS.canOpenSettings().then(result => !!result);
35
36
openSettings: () => Promise<*> = () => PermissionsIOS.openSettings();
37
0 commit comments