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

Please add Dropdown Icon on right default value #11

Open
TruongNguyen95 opened this issue Sep 28, 2020 · 1 comment
Open

Please add Dropdown Icon on right default value #11

TruongNguyen95 opened this issue Sep 28, 2020 · 1 comment

Comments

@TruongNguyen95
Copy link

Please add Dropdown Icon on right default value, thanks you :D

@donni106
Copy link
Contributor

donni106 commented Mar 5, 2021

Why do you think a default icon could be the right decision for this package? Which icon would you prefer? I cannot think of an icon that could fit every case for anybody. The current way is to pass an icon if you want one. You can use the renderRightComponent prop, which will be rendered where you expect it.

<View style={styles.button}>
<Text style={[styles.buttonText, buttonTextStyle]} numberOfLines={1}>
{buttonText}
</Text>
<RightComponent />
</View>

The default is an empty View

renderRightComponent: View

const RightComponent = renderRightComponent;

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

2 participants