Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How I can put the renderRightComponent at the end of the ModalDropdown #23

Open
ssantamariaArkkosoft opened this issue Mar 5, 2021 · 3 comments

Comments

@ssantamariaArkkosoft
Copy link

When I add the renderRightComponent for the icon, it shows like this:

Screen Shot 2021-03-04 at 20 14 54

But, I need it to show like this:

Screen Shot 2021-03-04 at 20 16 20

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.

@Tmsolutions
Copy link

You saved my life with this solution :D Never tought about it!!!

@oehc123
Copy link
Contributor

oehc123 commented Apr 17, 2021

I had the same issue, I added a patch in my library.
I am going to make a PR for future references

@Sargnec
Copy link

Sargnec commented Jan 12, 2022

When I add the renderRightComponent for the icon, it shows like this:

Screen Shot 2021-03-04 at 20 14 54

But, I need it to show like this:

Screen Shot 2021-03-04 at 20 16 20

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants