title: react-native-camera (android): takePictureAsync() throws error
body: <p>After calling takePictureAsync() from react-native-camera, i'm getting this error: </p>
  
  <pre><code>{
    "framesToPop": 1,
    "nativeStackAndroid": [],
    "userInfo": null,
    "message": "Preview is paused - resume it before taking a picture.",
    "code": "E_TAKE_PICTURE_FAILED",
    "line": 2131,
    "column": 45,
    "sourceURL": "http://10.0.2.2:8081/index.bundle?platform=android&amp;dev=true&amp;minify=false"
  }
  </code></pre>
  
  <p>So I tried using resumePreview() method before calling takePictureAsync() and now I'm getting a different error message:</p>
  
  <pre><code>{
    "framesToPop": 1,
    "nativeStackAndroid": [],
    "userInfo": null,
    "message": "takePicture failed",
    "code": "E_TAKE_PICTURE_FAILED",
    "line": 2131,
    "column": 45,
    "sourceURL": "http://10.0.2.2:8081/index.bundle?platform=android&amp;dev=true&amp;minify=false"
  }
  </code></pre>
  
  <p>My component and usage i identical to that of <a href="https://react-native-community.github.io/react-native-camera/docs/rncamera" rel="nofollow noreferrer">https://react-native-community.github.io/react-native-camera/docs/rncamera</a> </p>
  
  <pre><code>    &lt;RNCamera
        ref={ref =&gt; {
          this.camera = ref;
        }}
        style={styles.preview}
        type={RNCamera.Constants.Type.back}
        flashMode={RNCamera.Constants.FlashMode.on}
        androidCameraPermissionOptions={{
          title: 'Permission to use camera',
          message: 'We need your permission to use your camera',
          buttonPositive: 'Ok',
          buttonNegative: 'Cancel',
        }}
        androidRecordAudioPermissionOptions={{
          title: 'Permission to use audio recording',
          message: 'We need your permission to use your audio',
          buttonPositive: 'Ok',
          buttonNegative: 'Cancel',
        }}
        onGoogleVisionBarcodesDetected={({ barcodes }) =&gt; {
          console.log(barcodes);
        }}
      /&gt;
  
  
  
  
  takePicture = async () =&gt; {
      if (this.camera) {
        const options = { quality: 0.5, base64: true };
        try {
          this.camera.resumePreview();
          const data = await this.camera.takePictureAsync(options);
          console.log(data.uri);
        } catch (error) {
          console.log(JSON.stringify(error, null, 2));
        }
      }
    };
  </code></pre>
  
  <p>versions: </p>
  
  <pre><code>"react-native": "0.61.2",
  "react-native-camera": "git+https://git@github.com/react-native-community/react-native-camera.git",
  </code></pre>
  
  <p>Works fine on iOS.
  Is this an issue with the library or my implementation? </p>