title: Image Picker not working in React Native app, why?
body: <p>I've installed react-native-image-picker successfully, for a fresh react native app, linked it and given right permissions via the info.plist file to access camera, photos etc...</p>
  
  <p>I'm using the code from the ReadMe on react-native-image-picker page, but i receive an error</p>
  
  <p>When attempting to openGallery() i get the following warning and no image library opens: </p>
  
  <p><strong>Possible unhandled Promise Rejection TypeError; undefined is not a function (near...reactNativeImagePicker.default.launchImageLibrary...)</strong></p>
  
  <p>Here's my code:</p>
  
  <pre><code>import ImagePicker from 'react-native-image-picker';
  .....
  
  class App extends Component {
  
    constructor(props) {
      super(props)
  
      this.state = {
        fileURL: '',
      }
    }
  
     //function
     openGallery = async () =&gt; {
        const options = {
          mediaType: 'video'
        }
  
      ImagePicker.launchImageLibrary(options, (response) =&gt; {
        console('Response = ', response);
  
        if(response.didCancel){
          console.log('User cancelled image picker');
        }
        else{
         this.setState({ fileURL: response.uri });
        }
      });
   }
  
  render() {
    return (
     &lt;View style={styles.container}&gt;      
      &lt;Button 
         style={{margin: 20}}
         onPress={this.openGallery}
         title='Open Gallery'
         backgroundColor='blue'
      /&gt;
     &lt;/View&gt;
  
  );
  
   }   
  }
  </code></pre>
  
  <p>Its run of the mill boiler plate code. Whats going on?</p>
  
  <p>@BoredKid, i get this in my console log:</p>
  
  <p>for (ImagePicker):</p>
  
  <pre><code>{showImagePicker: ƒ}
  showImagePicker: ƒ showImagePicker(options, callback)
  __proto__: Object
  </code></pre>
  
  <p>for (ImagePicker.showImagePicker); </p>
  
  <pre><code>ƒ showImagePicker(options, callback) {
        if (typeof options === 'function') {
          callback = options;
          options = {};
        }
  
        return ImagePickerManager.showImagePicker((0, _objectS…
  </code></pre>