Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
componentDidMount() {
const types = Permissions.getTypes();
this.setState({types});
this.updatePermissions(types);
AppState.addEventListener('change', this.onAppStateChange);
}
async function getTypes() {
const res = await Permissions.getTypes();
return res;
}
async function canOpenSettings() {