react-native-reusables
react-native-reusables copied to clipboard
How to open select menu programmatically?
<Select defaultValue={{ value: 'apple', label: 'Apple' }} open={true}>
i can also confirm open doesnt seem to do anything, but setting open={false} would disable the functionality. Also defaultOpen doesnt seem to do anything
couldnt open the dropdown menu as well with the open prop
@useEffects Unfortunately it is not possible at the moment. It slipped my attention. The reason is that components like Select and Dropdown's position on the screen is calculated on press.
What is your exact use case for opening the menus programmatically?
I was trying to create an AutoSelect component using the existing ui, but seems like i cant atm
@useEffects I just updated the ui and primitive components like Select and Dropdown Menu. Once you update your components, you can follow the instructions here: https://rnr-docs.vercel.app/getting-started/common-patterns/#programmatically-showing-and-hiding-components.
If you run into another issue, please open a new one. Thanks!