title: RNCamera Error:TypeError: CameraManager.checkIfRecordAudioPermissionsAreDefined is not a function
body: <blockquote>
    <p>[Unhandled promise rejection: TypeError:
    CameraManager.checkIfRecordAudioPermissionsAreDefined is not a
    function. (In
    'CameraManager.checkIfRecordAudioPermissionsAreDefined()',
    'CameraManager.checkIfRecordAudioPermissionsAreDefined' is undefined)]</p>
  </blockquote>
  
  <pre><code>return (
    &lt;View&gt;
      &lt;Text&gt;Welcome to React Native QRScanner!&lt;/Text&gt;
  
      &lt;RNCamera
        ref={ref =&gt; {
          this.camera = ref;
        }}
        style={{
          flex: 1,
          width: '100%'
        }}
        androidRecordAudioPermissionOptions={{
          title: 'Permission to use audio recording',
          message: 'We need your permission to use your audio',
          buttonPositive: 'Ok',
          buttonNegative: 'Cancel',
        }}
        onBarCodeRead={this.barcodeRecognized}
      &gt;
  
      &lt;/RNCamera&gt;
    &lt;/View&gt;
  );
  </code></pre>