Replies: 3 comments
-
Hi! You could try to scale it appropriately with the transform property. Unfortunately, this does not look perfect on android without playing around a bit with the height. If you want to help out to get it to look better on Android it is very appreciated 🙂 <View style={{ transform: [{ scale: 1.2, }], }}>
<DatePicker
date={this.state.date}
onDateChange={date => this.setState({ date })}
style={{ height: 250 }}
/>
</View> |
Beta Was this translation helpful? Give feedback.
-
I use this in my project (for years) to keep the units look same on every device.
Would be good to get it integrated with the library, for example
This would look the same on every device no matter the scaling. |
Beta Was this translation helpful? Give feedback.
-
@ChrisEelmaa Does this method work on Android devices too? Why did you pick especially iphone6 for the default screensize. I have been trying to find the perfect way for this scaling issue and I have been writing a lot of stlying to my components for different device sizes. Little enlightenment about this issue is much appreciated. |
Beta Was this translation helpful? Give feedback.
-
Hi folks,
Anyway to style the date picker? Finding it looks vey small when used on iPad scale devices
Great tool - many thanks!
Cheers
Kit
Beta Was this translation helpful? Give feedback.
All reactions