How to use the react-native-permissions.getTypes function in react-native-permissions

To help you get started, we’ve selected a few react-native-permissions examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github react-native-community / react-native-permissions / example / App.js View on Github external
componentDidMount() {
    const types = Permissions.getTypes();

    this.setState({types});
    this.updatePermissions(types);

    AppState.addEventListener('change', this.onAppStateChange);
  }
github mustafaskyer / rigel-rn / App / util / permissions.js View on Github external
async function getTypes() {
    const res = await Permissions.getTypes();
    return res;
  }
  async function canOpenSettings() {