erksch / react-native-wheely

An all JavaScript wheel picker for react-native without any native code.
413 stars 59 forks source link

Dynamic item height? #70

Open BlagojeV93 opened 7 months ago

BlagojeV93 commented 7 months ago

Is it possible to have dynamic item height based on the length of the text option? I have an use case where I have 4 options, 2 of them are normal "short" options, but the other two are long texts that are being cut off the screen if I don't set the itemHeight manually. But if I do that it looks bad for the first two options.

Screenshot 2024-02-14 at 11 05 58 Screenshot 2024-02-14 at 11 06 04

I have itemTextStyle set for option text and no itemStyle set. I'm just wondering if this is possible with some styling or the option text can't impact the item height at all