AdelRedaa97 / react-native-select-dropdown

react-native-select-dropdown is a highly customized dropdown | select | picker | menu for react native that works for andriod and iOS platforms.
MIT License
320 stars 137 forks source link

Search can't find data when the list of data is too long. #79

Closed rahmanda-wa closed 1 year ago

rahmanda-wa commented 2 years ago

And it behave differently across different android device, on some device it able to find the data, but on other device the search only work for a certain length of data list. For instance if i have a list of 150 customer, the search can only find the first 100 customer in the list. Thank you in advance for the help, sorry for my bad english.

AdelRedaa97 commented 2 years ago

I think it's the same issue here https://github.com/AdelRedaa97/react-native-select-dropdown/issues/69

rahmanda-wa commented 2 years ago

it can show all the data in the dropdown with no problem, it just wouldn't show the search result if the data list is too long

kkkasio commented 2 years ago

I think I have the same problem, I have a long list of Az. If you look up the value directly from a word at the end of the list, no filtering result is generated.

I also think it could be something related to the size of the list.

@rahmanda-wa Did you manage to reverse this behavior?

rahmanda-wa commented 2 years ago

not really, i'm just stuck with it for now

sbozzella commented 2 years ago

Hi, i am facing now the same behaviour: i have a long list of data and the search function doesn't find last elements of the list.

How can i resolve it?

nikhil3010 commented 2 years ago

@kkkasio @sbozzella @AdelRedaa97 @rahmanda-wa i solve this issue by removing a code from react-native-select-dropdown/src/helpers/deepSearchInArr.js at. line number 34 i remove else part here i attach a screen shot of it Screenshot 2022-09-09 at 6 04 00 PM

AdelRedaa97 commented 1 year ago

onScrollEndReached prop is added for pagination in v3.0.0 and also onChangeSearchInputText to make your custom search function outside the component