mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
10 lines
323 B
TypeScript
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();
|