onEndReached() {
    if (this.props.searchResults.length) {
      const indices = [
        {
          name: "inspiration",
          hitsPerPage: 8,
          page: ++this.state.currentPage
        },
        {
          name: "idea",
          hitsPerPage: 4,
          page: ++this.state.currentPage
        }
      ]

      this.props.getSearchResults(this.state.searchQuery, indices)
    }
  }
/**
   * Load more content when the user has reached the end of the scroll view.
   *
   * @return {void}
   */
Load more content when the user has reached the end of the scroll view.
@return {void}
Load more content when the user has reached the end of the scroll view . @return { void }
onEndReached() {
    if (this.props.searchResults.length) {
      const indices = [
        {
          name: "inspiration",
          hitsPerPage: 8,
          page: ++this.state.currentPage
        },
        {
          name: "idea",
          hitsPerPage: 4,
          page: ++this.state.currentPage
        }
      ]
      this.props.getSearchResults(this.state.searchQuery, indices)
    }
  }
onEndReached ( ) { if ( this . props . searchResults . length ) { const indices = [ { name : "inspiration" , hitsPerPage : 8 , page : ++ this . state . currentPage } , { name : "idea" , hitsPerPage : 4 , page : ++ this . state . currentPage } ] this . props . getSearchResults ( this . state . searchQuery , indices ) } }
Load more content when the user has reached the end of the scroll view.
Load more content when the user has reached the end of the scroll view .