dohooo / react-native-table-component

🌱Build table for react native
MIT License
730 stars 188 forks source link

Large Data for Table Makes it Too Slow #119

Open Sanan4li opened 4 years ago

Sanan4li commented 4 years ago

I am using Table and fetching data with an API. fetching data doesn't take too much time but when I set the data to a state and display it in the table. It takes almost 7-8 sec. This issue is probably because of ScrollView. Can you update this component to use FlatList instead of ScrollView? It will be very good.

ezranbayantemur commented 4 years ago

This component uses data.map function for render, so it makes rendering slow. You can use two ways; 1) Implement pagination for data 2) Override row.js file to Flatlist component

dtaborda commented 4 years ago

Does exist any pagination component? Do you have any example about how to override the row.js to Flatlist?

ezranbayantemur commented 4 years ago

@dtaborda https://github.com/ezranbayantemur/react-native-table-component here I've forked and updated to row.js. I hope it can give you some idea

itakurashingo commented 3 years ago

When will this issue be merged into the master?