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

Row child with a JSX element #97

Closed sbozzella closed 1 year ago

sbozzella commented 1 year ago

Hi, i want to show in row child a list of item and just one button as first (or last) element of the list to give the possibility to the user to perform an event (in my case to navigate to another screen).

I tried with renderCustomizedRowChild but it add the button to all rows. I need just one button.

Thank you :)

AdelRedaa97 commented 1 year ago

Can you clarify more or add a photo of what you want to achieve?

martinlarka commented 1 year ago

Can't you use the index (second argument) of renderCustomizedRowChild and conditionally render the button?