hoaphantn7604 / react-native-element-dropdown

A react-native dropdown component easy to customize for both iOS and Android.
MIT License
861 stars 154 forks source link

[Question] [UI] How to implement "add searched item if not in the list" #254

Open sanduluca opened 3 months ago

sanduluca commented 3 months ago

How to implement "add searched item if not in the list".

Here is an exemple from Jira software. They for example have a lable filed and if you start writing/searching for a label that is not in the list, you can press on it and its added to the list (api request to add + new get request for new list of labels).

image It may be a plus icon or a add button or a some text near the item

nehalprasad commented 3 months ago

Consider creating an component and use this dropdown to show the list. You can add a condition if the item is not in the list then push the the searchedText inside that, it will be local and will be deleted once the screen is refreshed. Consider using database so that you data will be added inside that @sanduluca