We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to set the padding around the DrawerItem label text, due to fixed height text is truncated for some fonts in iOS devices
label fonts should not be truncated There should be way to provide the padding around the label and height of the drawer item
<DrawerItem label={item.label} key={item.key} icon={ <Icon name={item.icon} color={item.route === activeRoute ? textColor : Colors.black} size={24} /> } active={item.route === activeRoute} onPress={ item.onPress || (() => { if (item.route) this.doNavigation(item.route); }) } />
Added the DrawerItem with font SalesforceSans
The text was updated successfully, but these errors were encountered:
fix: remove hardcoded drawer item height (#460)
02458ba
Fixes: #453
No branches or pull requests
Current behaviour
Unable to set the padding around the DrawerItem label text, due to fixed height text is truncated for some fonts in iOS devices
Expected behaviour
label fonts should not be truncated
There should be way to provide the padding around the label and height of the drawer item
Code sample
<DrawerItem
label={item.label}
key={item.key}
icon={
<Icon
name={item.icon}
color={item.route === activeRoute ? textColor : Colors.black}
size={24}
/>
}
active={item.route === activeRoute}
onPress={
item.onPress ||
(() => {
if (item.route) this.doNavigation(item.route);
})
}
/>
Screenshots (if applicable)
What have you tried
Added the DrawerItem with font SalesforceSans
Your Environment
The text was updated successfully, but these errors were encountered: