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

picker width #96

Closed
kingofday opened this issue Jul 28, 2019 · 5 comments
Closed

picker width #96

kingofday opened this issue Jul 28, 2019 · 5 comments
Labels

Comments

@kingofday
Copy link

how can make picker box smaller, i want to have three picker in one row like date picker but for persian?
but now it not follow width of it's wrapper view:{flex:0.2}

@alexandre033
Copy link

You need to specify width and height.
style={{width: 100, height: 100}}

@yacineblr
Copy link

Did you find a solution?

@kingofday
Copy link
Author

kingofday commented Oct 1, 2019 via email

@lennartwollatz
Copy link

An Auto resize would be nice for default.
Change
static defaultProps = { style: { width: 200, height: 150, }, }
To:
static defaultProps = { style: { width: "auto", height: 150, }, }
In

  • src\WheelPicker.ios.js
  • src\WheelPicker.android.js

Then the Component will resize automatic. If you would like to have a static width you can set this by the componentWrapper.

@ArtemKosiakevych
Copy link
Collaborator

You can set picker width with style prop

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

No branches or pull requests

5 participants