pinguinjkeke / react-native-wheel-datepicker

Android & iOS iOS-style Picker & DatePicker Components for ReactNative

Home Page:https://www.npmjs.com/package/react-native-wheel-datepicker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

itemStyle not getting pass to WheelCurvedPicker.Item

dgonzalezr opened this issue · comments

¿Could be possible to override default item style for android?

As per WheelCurvedPicker.android.js file, the item style seems to sets only the default values:

static defaultProps = {
    textSize: 26,
    itemSpace: 20,
    itemStyle: null,
    textColor: '#333',
  };

and there's no current way to dynamic override them, rather than changing the code directly.

Hi @dgonzalezr!

You can adjust style with this props. itemStyle is legacy and will be deleted in next release as it has no effect.

textColor: ColorPropType,
textSize: PropTypes.number,
itemSpace: PropTypes.number,

@pinguinjkeke great, thanks! I'll give it a try :-)