Icons get cut off
See original GitHub issueWhat kind of Issue is this?
- (x) Bug Report
How are you using the Bottom Navigation?
- (x) I use the standalone version.
Expected behavior
I expect icons to be fully visible, independent of the given size.
Actual behavior
Icons will be cut off if size increases above a given point.
Additional description and resources
import BottomNavigation, { Tab } from 'react-native-material-bottom-navigation'
import Icon from 'react-native-vector-icons/SimpleLineIcons'
import React from "react";
import { StyleSheet } from 'react-native';
export default class Main extends React.Component {
render() {
return (
<BottomNavigation
activeTab="1"
style={styles.bottomNavigation}
>
<Tab
barBackgroundColor="#FFFAFB"
icon={<Icon size={40} color="#282A2A" name="people" />}
activeIcon={<Icon size={40} color="#F9D861" name="people" />}
/>
<Tab
labelColor="#282A2A"
barBackgroundColor="#FFFAFB"
icon={<Icon size={40} color="#282A2A" name="hourglass" />}
activeIcon={<Icon size={40} color="#F9D861" name="hourglass" />}
/>
<Tab
barBackgroundColor="#FFFAFB"
icon={<Icon size={40} color="#282A2A" name="present" />}
activeIcon={<Icon size={40} color="#F9D861" name="present" />}
/>
</BottomNavigation>
);
}
}
const styles = StyleSheet.create({
bottomNavigation: {
position: 'absolute',
left: 0,
right: 0,
bottom: 0,
height: 56
}
})
Screenshot
Environment
- React Native versions: 0.50.3
- react-native-material-bottom-navigation version: 0.7.0
- I tested this with: iOS
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
icons cut off - Microsoft Community
Just changed to a new hdmi tv for display and desktop icons are cut off on the borders. How do I get them...
Read more >Font Awesome Icon is getting cut off - Stack Overflow
It might resolve your issue letter-spacing: 1px;.
Read more >Desktop icons cut off on top of screen - Windows 11
Besides the attached image it sometimes gets much larger, only thing I can do to fix it is to move an icon into...
Read more >Cut off Icons – Download for Free in PNG and SVG - Icons8
Free Cut off icons in various UI design styles for web, mobile. Download static and animated Cut off vector icons for free in...
Read more >FontAwesome Icon getting cut off. : r/Rainmeter - Reddit
I'm working on this skin but the Font Awesome Icon showing the current media player (using webnowplaying) is getting cut off on the...
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
Same issue, for now solving issue placing ICON inside TEXT
<Text><Icon type="MaterialIcons" name="crop-portrait" /></Text>
Ok, get it. Thanks for the explanation. I will just go with a
24
size for now.