toystars / react-native-multiple-select

Simple multi-select component for react-native
MIT License
563 stars 313 forks source link

its very slow when selecting an item,when fetching data from API, because re-rendering when choose item, please any one can help??? #47

Open hasan642 opened 6 years ago

hasan642 commented 6 years ago

Issue summary

Add a short description of issue, preferably, a sentence.

Library versions

Steps to Reproduce

(Write your steps here:)

1. 2. 3.

Expected Behavior

(Write what you thought would happen.)

Actual Behavior

(Write what happened. Add screenshots!)

Reproducible Code

(Paste exact code snippet and instructions to reproduce the issue.)

iCodePup commented 6 years ago

what do you mean by fetching data by API ? I make API fetch request to get all items data and put in inside one state In dev mode its very slow too...

machester4 commented 6 years ago

the problem may be in the ScrollView and the map function to render the children. you would have to modify all that part using a FlatList.