title: Possible Unhandled Rejection in Expo MediaLibrary
body: <p>I'm trying to fetch the albums in my media library via <a href="https://docs.expo.io/versions/latest/sdk/media-library#expomedialibrarygetalbumsasync" rel="nofollow noreferrer">Expo MediaLibrary SDK</a></p>
  
  <p>I'm trying to resolve the promise to get the all the album names, ids etc through the function Expo.MediaLibrary.getAlbumsAsync() which gets an array.</p>
  
  <pre><code>import React from 'react';
  import {
    ActivityIndicator,
    Button,
    Clipboard,
    Image,
    Share,
    StatusBar,
    StyleSheet,
    Text,
    TouchableOpacity,
    View,
    Alert,
  } from 'react-native';
  import Expo, { MediaLibrary, Permissions, Constants, ImagePicker, registerRootComponent } from 'expo';
  
  export default class ChoosePhotos extends React.Component {
    state = {
      image: null,
      uploading: false,
    };
  
    //Get Permission and get Albums list
  
     async componentDidMount(){
       this.getAlbum();
    }
  
    getAlbum = async () =&gt; {
      const { status } = await Permissions.askAsync(Permissions.CAMERA_ROLL);
  
      if(status !== 'granted'){
        this.setState({ cameraRollPerm: false });
  
        Alert.alert(
          '',
          'Please grant permissions to access your media library to continue.',
          [
           /*  {text: 'Ask me later', onPress: () =&gt; console.log('Ask me later pressed')},
            {text: 'Cancel', onPress: () =&gt; console.log('Cancel Pressed'), style: 'cancel'}, */
            {text: 'OK', onPress: () =&gt; console.log('OK Pressed')},
          ],
          { cancelable: false }
        );
      }
  
      let albumList = await MediaLibrary.getAlbumsAsync()
        .then(albumArray =&gt; { console.log(albumArray) })
        .catch(() =&gt; { console.log("failed to fetch albums.") });
  
    }
  
    render() {
      console.log(this.state.image)
      let { image } = this.state;
  
      return (
        &lt;View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}&gt;
          &lt;Text
            style={{
              fontSize: 20,
              marginBottom: 20,
              textAlign: 'center',
              marginHorizontal: 15,
            }}&gt;
            Example: Upload ImagePicker result
          &lt;/Text&gt;
  
          &lt;Button
            onPress={this._pickImage}
            title="Pick an image from camera roll"
          /&gt;
  
          &lt;Button onPress={this._takePhoto} title="Take a photo" /&gt;
  
          &lt;StatusBar barStyle="default" /&gt;
        &lt;/View&gt;
      );
    }
  
    _takePhoto = async () =&gt; {
      let pickerResult = await ImagePicker.launchCameraAsync({
      });
  
      this.props.navigation.navigate('SizeSelectionScreen', {imageLink: pickerResult.uri});
    };
  
    _pickImage = async () =&gt; {
      let pickerResult = await ImagePicker.launchImageLibraryAsync({
      });
      this.props.navigation.navigate('SizeSelectionScreen', {imageLink: pickerResult.uri});
    }; 
  }
  </code></pre>
  
  <p>I'm getting the same old Promise rejection error even I've handled it properly via catch and if the promise is not handled correctly, does it means I'm not getting my media library albums details?</p>
  
  <p>Here is the error:</p>
  
  <p><a href="https://i.stack.imgur.com/5G88T.png" rel="nofollow noreferrer">Error screenshot</a></p>