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

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

Open
3 of 7 tasks
cheneyma1s opened this issue Nov 20, 2023 · 4 comments
Labels
bug a bug in one of the components wontfix

Comments

@cheneyma1s
Copy link

cheneyma1s commented Nov 20, 2023

Description

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

Related to

  • Components
  • Demo
  • Docs
  • Typings

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

  • React Native version: 0.72.6
  • React Native UI Lib version: 7.1.0

Affected platforms

  • Android
  • iOS
  • Web
@cheneyma1s cheneyma1s added the bug a bug in one of the components label Nov 20, 2023
@NicoSchtt
Copy link

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

@AnthonyCerdasAnalisis
Copy link

AnthonyCerdasAnalisis commented Dec 19, 2023

I have the same problem
Did you find any solution?

@szymon-rajewski
Copy link

szymon-rajewski commented Feb 9, 2024

I was able to add padding but not color styles:

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

Copy link

stale bot commented Jan 31, 2025

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug a bug in one of the components wontfix
Projects
None yet
Development

No branches or pull requests

4 participants