callstack / react-native-paper

Material Design for React Native (Android & iOS)
https://reactnativepaper.com
MIT License
12.5k stars 2.05k forks source link

drawer.item font style #2545

Closed vigyanhoon closed 3 years ago

vigyanhoon commented 3 years ago

Hi,

I have to change font size, weight etc of the drawer item label. I tried using style props, but nothing works except for backgroundColor. Is there a way to enable font change to drawer item?

Thanks.

<Drawer.Item style={{ backgroundColor: '#64ffda' }} icon="star" label="First Item" />

github-actions[bot] commented 3 years ago

Couldn't find version numbers for the following packages in the issue:

Can you update the issue to include version numbers for those packages? The version numbers must match the format 1.2.3.

vigyanhoon commented 3 years ago

"react-native": "0.63.4", "react-native-paper": "^4.7.1", "react-native-vector-icons": "^8.0.0",

github-actions[bot] commented 3 years ago

Hello 👋, this issue has been open for more than 2 months with no activity on it. If the issue is still present in the latest version, please leave a comment within 7 days to keep it open, otherwise it will be closed automatically. If you found a solution on workaround for the issue, please comment here for others to find. If this issue is critical for you, please consider sending a pull request to fix the issue.

Alarees commented 2 years ago

use the theme prop


theme={{colors:{text:'red'}}}
mike-rbrts commented 3 weeks ago

theme={{ fonts: { labelLarge: { fontWeight: '700', fontSize: 15 } } }}