wix / react-native-ui-lib

UI Components Library for React Native
https://wix.github.io/react-native-ui-lib/
MIT License
6.53k stars 712 forks source link

When using the Picker component with useWheelPicker, the doneButtonProps in topBarProps do not work. #2813

Open cheneyma1s opened 11 months ago

cheneyma1s commented 11 months ago

Description

When using the Picker component with useWheelPicker, the doneButtonProps in topBarProps do not work.

Related to

Steps to reproduce

Expected behavior

have padding and text color changed

Actual behavior

Not effective DoneButton with padding and text color

More Info

Code snippet

            <Picker
                value={currentValue}
                placeholder={'Placeholder'}
                onChange={i => console.log('changed', i)}
                useWheelPicker
                topBarProps={{
                    doneLabel: "OK", 
                    doneButtonProps: {
                        color: "red",
                        padding: 10
                    }
                }}
            >
                { options.map(i => <Picker.Item key={i.value} value={i.value} label={i.label} />) }
            </Picker>

Screenshots/Video

image

Environment

Affected platforms

NicoSchtt commented 10 months ago

Seems the same problem as this ISSUE I opened it in September but I still have the problem

AnthonyCerdasAnalisis commented 10 months ago

I have the same problem Did you find any solution?

szymon-rajewski commented 8 months ago

I was able to add padding but not color styles:

topBarProps={{
    containerStyle: {
        paddingTop: 16,
        paddingRight: 16,
    },
}}