title: How to get a specific value in an Object in React Native?
body: <p>I'm currently coding my first app using React Native and using iTunes' search API.</p>
  <p>I put a TextInput and a Button which returns all the albums corresponding to the text. Once you click an album, it takes its unique ID and searches the details of this album.</p>
  <pre><code>export function getAlbumDetailFromApi(id)
  {
    return fetch('https://itunes.apple.com/lookup?id='+id)
    .then((response) =&gt; response.json())
    .catch((error) =&gt; console.log(error));
  }
  </code></pre>
  <p>Here is the class:</p>
  <pre><code>
  class AlbumDetail extends React.Component {
    constructor(props) {
      super(props)
      this.state = {
        album: undefined,
        isLoading: true
      }
    }
  
    componentDidMount() {
      console.log(this.props.navigation.state.params.idAlbum)
      getAlbumDetailFromApi(this.props.navigation.state.params.idAlbum).then(data =&gt; {
        this.setState({
          album: data,
          isLoading: false
        })
      })
    }
  
    _displayLoading() {
      if (this.state.isLoading) {
        return (
          &lt;View style={styles.loading_container}&gt;
            &lt;ActivityIndicator size='large' /&gt;
          &lt;/View&gt;
        )
      }
    }
  
    _displayFilm() {
      const { album } = this.state
  
      console.log(album.results.artistId)
      console.log()
      if (album != undefined) {
        return (
          &lt;ScrollView style={styles.scrollview_container}&gt;
            &lt;Text style={styles.title_text}&gt;name of the album should go here&lt;/Text&gt;     
          &lt;/ScrollView&gt;
        )
      }
    }
  
    render() {
      return (
        &lt;View style={styles.main_container}&gt;
          {this._displayLoading()}
          {this._displayFilm()}
        &lt;/View&gt;
      )
    }
  }
  </code></pre>
  <p>If my album ID is '1474669063', the function will return that:</p>
  <p><a href="https://i.stack.imgur.com/lmfa9.png" rel="nofollow noreferrer">API's response</a></p>
  <p>But here is my problem. Maybe it's super simple but I've tried everything I found but I can't access the data...</p>
  <p>Could someone help me please?</p>