beefe / react-native-picker

A Native Picker with high performance.
1.75k stars 786 forks source link

pickerFontSize is not working on iOS #362

Open danhnguyeen opened 5 years ago

danhnguyeen commented 5 years ago

Hi guys, Thanks for your useful library. I have an issue with the font size on iOS. It seems this optional is not working on iOS? (Android is ok) Can you help me please?

Picker.init({
      pickerData: this._createData(),
      pickerTitleText: '',
      pickerTextEllipsisLen: 20,
      pickerFontFamily: platform === 'android' ? 'Roboto-Regular' : 'System',
      pickerFontSize: 22,
      pickerRowHeight: 32,
      pickerConfirmBtnText: i18n.t('global.confirm'),
      pickerCancelBtnText: i18n.t('global.cancel'),
      pickerTitleColor: [7, 47, 106, 1],
      selectedValue: [this.state.selectedValue],
      onPickerConfirm: (pickedValue, pickedIndex) => {
        this.hidePicker();
      },
      onPickerCancel: () => {
        this.hidePicker();
      }
});
Picker.show();
andrei0807 commented 5 years ago

me too

zzb-web commented 5 years ago

我也遇到这种情况,有解法吗?

kg-currenxie commented 5 years ago

Same

kiljee commented 5 years ago

Same

raginisahu commented 5 years ago

I am also having the same problem.

vance-liu commented 5 years ago

+1 same problem

drinikol commented 4 years ago

same here not working

Duya3fithou commented 4 years ago

Same me

ajaxsys commented 3 years ago

Hi, try set font family:

 pickerFontFamily: isIOS ? 'System Font' : 'Roboto-Regular',
TruongAnhQuoc-vnist commented 3 years ago

Hi, try set font family:

 pickerFontFamily: isIOS ? 'System Font' : 'Roboto-Regular',

I added pickerFontFamily and then I could change fontSize of anything Thank you so much <3