react-native-modal-dropdown
react-native-modal-dropdown copied to clipboard
How I can put the renderRightComponent at the end of the ModalDropdown
When I add the renderRightComponent for the icon, it shows like this:

But, I need it to show like this:

Checking the code of the ModalDropdown.js I found that I need to modify the "styles.button" to add "justifyContent: 'space-between'". Can you add one option to modify the view style "View style={styles.button}"?
One solution I found was to add 90% width to the textStyle, but I think it would be more helpful if I could modify the view style.
Thanks.
You saved my life with this solution :D Never tought about it!!!
I had the same issue, I added a patch in my library. I am going to make a PR for future references
When I add the renderRightComponent for the icon, it shows like this:
![]()
But, I need it to show like this:
![]()
Checking the code of the ModalDropdown.js I found that I need to modify the "styles.button" to add "justifyContent: 'space-between'". Can you add one option to modify the view style "View style={styles.button}"?
One solution I found was to add 90% width to the textStyle, but I think it would be more helpful if I could modify the view style.
Thanks.
flex: 1 to text styles works too. Thanks