react-native-gifted-listview icon indicating copy to clipboard operation
react-native-gifted-listview copied to clipboard

Example with dynamic data

Open Aathi opened this issue 8 years ago • 5 comments

https://github.com/Aathi/react-native-handle-pagination-example iphone_6_-_iphone_6___ios_9_3__13e230_

Aathi avatar Jun 22 '16 23:06 Aathi

Your example is great! How do we use this for JSON which doesn't have total count & page number.

sudharsan1988 avatar Jul 14 '16 14:07 sudharsan1988

@sudharsan1988 I think If your JSON doesn't have pagination then you can't use this plugin

Aathi avatar Jul 14 '16 15:07 Aathi

@Aathi Thank you, I got you! I am trying to get a data for each record from different API but as the OnFetch function is an async, it doesn't let me call any other service until it's done.

Any idea how do I call another service and render the result at a time?

Thanks again!

sudharsan1988 avatar Jul 21 '16 19:07 sudharsan1988

Hi, I solved it by creating a child component and passing the value to props and it worked. Thanks!

sudharsan1988 avatar Jul 21 '16 22:07 sudharsan1988

@sudharsan1988 👍

Aathi avatar Jul 22 '16 08:07 Aathi