beefe / react-native-picker

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

修改字体无效 #404

Open HeMa321 opened 4 years ago

HeMa321 commented 4 years ago

image

Picker.init({ pickerBg: [255, 255, 255, 1], pickerConfirmBtnColor: [82, 115, 255, 1], pickerCancelBtnColor: [82, 115, 255, 1], pickerData: data, selectedValue: selectedValue, pickerTitleText: title, pickerRowHeight: 60, pickerToolBarFontSize: 20, pickerFontSize: 26, pickerConfirmBtnText: 'OK', pickerCancelBtnText: 'CANCEL', //确定

我这样设置了 不管pickerFontSize设置25还是50,这个字体大小还是一样,请教下 android ios字体应该怎么设置?

ajaxsys commented 4 years ago

请试着加上字体:

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