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

[Select] customize the content of the Select component #5782

Open
yixiaojiu opened this issue Aug 18, 2023 · 2 comments
Open

[Select] customize the content of the Select component #5782

yixiaojiu opened this issue Aug 18, 2023 · 2 comments

Comments

@yixiaojiu
Copy link

yixiaojiu commented Aug 18, 2023

Description

Add a prop in Select component, which can customize the content.

Problem Statement

I need some ability, but the current Select component can't meet my needs. For example, I want to center the content in the Select.

Proposed Solution or API

<Select render={(selectedItem) => <View>{custom content}</View>}>
</Select>

Alternatives

No response

Additional Information

I have the insterest to achieve this.

@kiethuynh0904
Copy link

kiethuynh0904 commented Sep 6, 2023

Hi @yixiaojiu, Not sure about what you need, but if you just want to center the content in SelectItem just do this
https://snack.expo.dev/@kiethuynh0904/selecteditem-customize

hope this helps

@yixiaojiu
Copy link
Author

@kiethuynh0904 I mean, is there anyway to customize this?
image

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

No branches or pull requests

2 participants