danish1658 / react-native-dropdown-select-list

☝️ React Native Select List Equivalent to Html's Select with options"
https://www.npmjs.com/package/react-native-dropdown-select-list
MIT License
206 stars 95 forks source link

How to show Default value on DropList #38

Closed koiyiaras closed 1 year ago

koiyiaras commented 1 year ago

Is it a way to show the Default value or the previously selected value when I open the drop list? For example I made a year picker from 2002 - 2072 and I set defaultOption={current_year}. The current year shows properly by default, but when I open the drop list it shows year 2002 first (the beginning of my list). Is it possible to show my default year? droplist

danish1658 commented 1 year ago

I understand you want the dropdown options to start from the default or selected value, but this functionality doesn't exist yet, i will add it into the enhancement list

koiyiaras commented 1 year ago

Thanks for the info! Good job by the way

On Tue, Dec 6, 2022 at 6:40 PM Danish Amin Dar @.***> wrote:

Closed #38 https://github.com/danish1658/react-native-dropdown-select-list/issues/38 as completed.

— Reply to this email directly, view it on GitHub https://github.com/danish1658/react-native-dropdown-select-list/issues/38#event-7967904840, or unsubscribe https://github.com/notifications/unsubscribe-auth/AS6LVPDTR5KNFSI7B4FJVNDWL5M5DANCNFSM6AAAAAASVLJN74 . You are receiving this because you authored the thread.Message ID: <danish1658/react-native-dropdown-select-list/issue/38/issue_event/7967904840 @github.com>