react-native-picker icon indicating copy to clipboard operation
react-native-picker copied to clipboard

pickerFontSize is not working on iOS

Open danhnguyeen opened this issue 6 years ago • 10 comments

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();

danhnguyeen avatar Jan 30 '19 07:01 danhnguyeen

me too

andrei0807 avatar Feb 11 '19 03:02 andrei0807

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

zzb-web avatar Apr 12 '19 06:04 zzb-web

Same

kg-currenxie avatar Apr 12 '19 14:04 kg-currenxie

Same

kiljee avatar Apr 30 '19 13:04 kiljee

I am also having the same problem.

raginisahu avatar Jul 04 '19 10:07 raginisahu

+1 same problem

vance-liu avatar Jul 10 '19 03:07 vance-liu

same here not working

drinikol avatar Nov 29 '19 17:11 drinikol

Same me

Duya3fithou avatar Apr 14 '20 04:04 Duya3fithou

Hi, try set font family:

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

ajaxsys avatar Sep 21 '20 16:09 ajaxsys

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

TruongAnhQuoc-vnist avatar Feb 02 '21 14:02 TruongAnhQuoc-vnist