title: Trigger android permission within given time
body: <p>I am trying to make sure that android permission displays within a given time of 2.5 seconds. But instead, it does automatically after rendering. I tried with TimeOut and setInterval, but maybe the syntax structure is whats out of place. Can anyone suggest a solution, please</p>
  
  <pre><code>componentDidMount(){
      if(Platform.OS === 'ios'){
   navigator.geolocation.requestAuthorization()
      }
      //state for opened toggle and combine with android platform
      else if (Platform.OS === 'android') {
  
        async function requestlocationPermission() {
          try {
            const granted = await PermissionsAndroid.request(
              PermissionsAndroid.PERMISSIONS.ACCESS_FINE_LOCATION,
              {
                title: 'Location permission',
                message:
                  'Just for location ',
                buttonNegative: 'Cancel',
                buttonPositive: 'OK',
              },
            );
            if (granted === PermissionsAndroid.RESULTS.GRANTED) {
              console.log('location enabled');
            } else {
              console.log('location denied');
            }
          } catch {
            console.warn(err)
          }
        }
        setInterval(requestlocationPermission(), 2500)
  
      }
    }
  </code></pre>