title: Error: Permissions not granted... react-native-image-picker
body: <p>I am trying to upload an image from internal memory in our client app, using</p>
  
  <blockquote>
    <p><em>react-native-image-picker@^0.26.4</em></p>
  </blockquote>
  
  <p>And after executing the following sample snippet i got the response in an unexpected way.</p>
  
  <pre><code>ImagePicker.showImagePicker(options, response =&gt; {
    console.log("Response = ", response)
  
    if (response.didCancel) {
      console.log("User cancelled image picker")
    } else if (response.error) {
      console.log("ImagePicker Error: ", response.error)
    } else if (response.customButton) {
      console.log("User tapped custom button: ", response.customButton)
    } else {
      const source = { uri: response.uri }
      // RNGRP.getRealPathFromURI(response.uri).then(filePath =&gt; {
      //   uploadImageToS3(filePath, "dinesh")
      //   console.log(filePath)
      // })
  
      // You can also display  the image using data:
      // let source = { uri: 'data:image/jpeg;base64,' + response.data };
  
      this.setState({
        avatarSource: source
      })
    }
  </code></pre>
  
  <h1>RESPONSE</h1>
  
  <ul>
  <li><p>Response =  {error: "Permissions weren't granted"}
  error: "Permissions weren't granted"<strong>proto</strong>: Object
  D:\my_app\index.js:124 ImagePicker Error:  Permissions weren't granted</p></li>
  <li><p>Sometimes On Allow button press app unexpectedly crashes.</p></li>
  </ul>
  
  <h1>Additional Information</h1>
  
  <ul>
  <li>React Native version: ~0.46.1</li>
  <li>React: 16.0.0-alpha.12</li>
  <li>Platform: [Android 5.1 and above]</li>
  <li>Development Operating System: [Windows 7 Professional]</li>
  <li>Dev tools: [ Android Studio version 2.3.2, Android SDK 23]</li>
  </ul>