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

Placeholder fontFamily go back to default font when picking selection and later pressing placeholder again

Open henaharon opened this issue 5 years ago • 0 comments

Describe the bug
Placeholder fontFamily go back to default font when picking a selection and later pressing placeholder again.

To Reproduce
Steps to reproduce the behavior:

  1. Click on selector
  2. Pick a selection
  3. Pick placeholder selection

Expected behavior
fontFamily remains the same (as mention in style object) after changing selections. Screenshots
WhatsApp Image 2020-10-14 at 16 43 08 WhatsApp Image 2020-10-14 at 16 43 19 WhatsApp Image 2020-10-14 at 16 43 43

Additional details

  • Device: iPhone 8 Plus
  • OS: IOS13.7
  • react-native-picker-select version: ^8.0.1
  • react-native version: 0.63.1

Reproduction and/or code sample
RNPickerSelect

` <RNPickerSelect doneText={'סיים'} value={categorySelect} placeholder={{ label: 'סנן לפי איזור, value: 0, color: colors.PICKERS_RED, }} items={list.map((item) => ({ label: item.name, value: item.id, }))} onValueChange={(value) => { this.onCheckChanged(value); }} style={{inputIOS: { alignItems: 'flex-end', justifyContent: 'space-between',

                        height: height * 0.04,
                        width: width * 0.36,
                        fontSize: width * 0.045,
                        fontFamily: "Rubik-Bold",
                        textAlign: 'right',
                        paddingLeft: width * 0.02,
                        backgroundColor: colors.white
                    },
                    placeholder: {
                        fontFamily: "Rubik-Bold", // expected fontFamily
                        color: colors.PICKERS_RED
                    },}}
                    Icon={() => <Image source={require('../../../assets/arrow_dropdown.png')} style={styles.downArrowIcon} />}
                    useNativeAndroidPickerStyle={false}
                />`

henaharon avatar Oct 15 '20 08:10 henaharon