title: how to add pagination on fetch data react native
body: <p>I am creating mobile app in react-native. I am fetching data from url and post to the product page using Actions.product(responseJson);
  code to fetch data on home page:-</p>
  
  <pre><code> handlePressProduct(id) {
      var url =
          "http://www.furnitureinfashion.net/menu_category_listing.php?cat_id=";
      fetch(url + id, {
          method: "GET"
      })
          .then(response =&gt; {
              return response.json();
          })
          .then(responseJson =&gt; {
              Actions.product({ data: responseJson });
          });
  }
  </code></pre>
  
  <p>on prodcut page i am getting data like this:-</p>
  
  <pre><code>  &lt;View style={productStyle.products}&gt;
              {this.props.data.map(dataImage =&gt; (
                  &lt;TouchableOpacity
                      onPress={this.handlePressProduct.bind(
                          this,
                          dataImage["cPath"]
                      )}
                  &gt;
                      &lt;View
                          key={dataImage["CategoryId"]}
                          style={productStyle.homeimg1}
                      &gt;
                          &lt;Image
                              source={{ uri: uri + dataImage["Image"] }}
                              style={{ width: 130, height: 130 }}
                          /&gt;
                          &lt;Text style={productStyle.title}&gt;
                              {" "}
                              {dataImage["Name"]}
                          &lt;/Text&gt;
                          &lt;Text style={productStyle.shopbutton}&gt;
                              SHOP NOW
                          &lt;/Text&gt;
                      &lt;/View&gt;
                  &lt;/TouchableOpacity&gt;
              ))}
          &lt;/View&gt;
  </code></pre>
  
  <p>data i am fetching is too large. i want to add pagination in it. how can i add pagination ? </p>