How to use the react-native-geolocation-service.setRNConfiguration function in react-native-geolocation-service

To help you get started, we’ve selected a few react-native-geolocation-service 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 OriginProtocol / origin / mobile / src / components / origin-web3view.js View on Github external
async function requestLocationPermission() {
    if (Platform.OS === 'ios') {
        authorizationLevel: 'whenInUse'

      // IOS permission request does not offer a callback :/
      return null
    } else if (Platform.OS === 'android') {
      try {
        const granted = await PermissionsAndroid.request(
        if (granted === PermissionsAndroid.RESULTS.GRANTED) {
          return true
        } else {
          return false