react-native-picker
react-native-picker copied to clipboard
pickerFontSize is not working on iOS
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();
me too
我也遇到这种情况,有解法吗?
Same
Same
I am also having the same problem.
+1 same problem
same here not working
Same me
Hi, try set font family:
pickerFontFamily: isIOS ? 'System Font' : 'Roboto-Regular',
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