DefinitelyTyped/types/react-native-permissions/react-native-permissions-tests.ts
2018-04-09 09:58:52 -07:00

10 lines
323 B
TypeScript

import Permissions from 'react-native-permissions';
const firstType = Permissions.getTypes()[0];
Permissions.canOpenSettings().then();
Permissions.openSettings().then();
Permissions.check('geolocation').then();
Permissions.request('geolocation').then();
Permissions.checkMultiple(['geolocation', 'notification']).then();