From 4e341618558c54f3e621aaa16c29666ee49195e8 Mon Sep 17 00:00:00 2001 From: Nick Redmond Date: Fri, 28 Apr 2017 09:44:09 -0700 Subject: [PATCH] react-native: PermissionsAndroid should have requestMultiple method --- types/react-native/index.d.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/types/react-native/index.d.ts b/types/react-native/index.d.ts index a87295fdf0..fe7602bb9f 100644 --- a/types/react-native/index.d.ts +++ b/types/react-native/index.d.ts @@ -7053,6 +7053,12 @@ export interface PermissionsAndroidStatic { * and then shows the system permission dialog */ request(permission: Permission, rationale?: Rationale): Promise + /** + * Prompts the user to enable multiple permissions in the same dialog and + * returns an object with the permissions as keys and strings as values + * indicating whether the user allowed or denied the request + */ + requestMultiple(permissions: Array): Promise<{[permission: string]: PermissionStatus}> } export interface PushNotificationPermissions {