NativeBase icon indicating copy to clipboard operation
NativeBase copied to clipboard

[Select] customize the content of the Select component

Open yixiaojiu opened this issue 1 year ago • 2 comments

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.

yixiaojiu avatar Aug 18 '23 05:08 yixiaojiu

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

kiethuynh0904 avatar Sep 06 '23 06:09 kiethuynh0904

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

yixiaojiu avatar Sep 07 '23 06:09 yixiaojiu