Picker Item text Font family
See original GitHub issueI use textStyle
and itemTextStyle
to change font family in Picker text item but doesn’t work.
Can anyone help me?
<Picker
mode="dropdown"
selectedValue={this.state.selectedProvince}
onValueChange={() => { }}
textStyle= {{
fontFamily: 'IRANSans'
}}
>
{Object.keys(this.state.provinces).map((key) => {
return (<Picker.Item label={this.state.provinces[key]} value={key} key={key} />)
})}
</Picker>
and
<Picker
mode="dropdown"
selectedValue={this.state.selectedProvince}
onValueChange={() => { }}
itemTextStyle= {{
fontFamily: 'IRANSans'
}}
>
{Object.keys(this.state.provinces).map((key) => {
return (<Picker.Item label={this.state.provinces[key]} value={key} key={key} />)
})}
</Picker>
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Fontfamily on Picker.Item not working. FontWeight ... - GitHub
I try to add fontFamily and styling to Picker. ... the Picker on my own by simply using View, Pressable, Modal, Flatlist, Text...
Read more >Changing Picker.Item font family React native? - Stack Overflow
I want to change the font of the picker items, and i add a property itemStyle with fontFamily values. But the pickers items...
Read more >Picker.FontFamily Property (Xamarin.Forms) - Microsoft Learn
Gets or sets the font family for the picker text.
Read more >react native picker text style android
In React Native, we are more strict about it: you must wrap all the text nodes inside of a <Text> component. Changing Picker.Item...
Read more >PickerView - Tuya Design
PickerView is a multiple-choice container view,Be sure to specify a width and ... import { Picker } from 'tuya-panel-kit' ... textSize, Text size...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@behzad888 Hi, Behzad I think this is a React Native problem on Android. Please read this #1885 Also you can use this https://github.com/sohobloo/react-native-modal-dropdown
@akhil-geekyants You are testing Font-family on
<Text>
tag, but We have this problem in the<Picker>
and<Picker.Item>
for Android. 😄😃 Did you know what I mean?