10clouds / FluidBottomNavigation-rn

Animated Tab Bar Component for React Native
MIT License
192 stars 45 forks source link

Item's bubble quality isn't good ! (pixel pixel) #3

Open farzanm14 opened 5 years ago

farzanm14 commented 5 years ago

I have custom the tab bar with my own icons and titles but same as picture the bubble isn't clear ; pixels of blue circle are obvious 🙄🤔 what should I do make them like library's preview ?

fluid

I have use png icons and here is my code : ` <TabBar onPress={tabIndex => { this.setState({ currentPage: tabIndex }) }} values={[ { title: "منو", icon: require("../../assets/png/menu_stork.png") }, { title: "گروه ها", icon: require("../../assets/png/group_stork.png") }, { title: "پیام ها", icon: require("../../assets/png/message_stork.png") }, { title: "درایو", icon: require("../../assets/png/drive_stork.png") }, { title: "خانه", icon: require("../../assets/png/home_stork.png") } ]} />

`

zaguiini commented 4 years ago

.png files are not scalable, that's why you are seeing it blurred. You could use something like .svg files to achieve that.

farzanm14 commented 4 years ago

.png files are not scalable, that's why you are seeing it blurred. You could use something like .svg files to achieve that.

Thank you :) but I think the library use png as default also I don't have this problem in IOS

diegoHdzZ commented 3 years ago

Do you know the needed width and height for the icons?

diegoHdzZ commented 3 years ago

Hey! I just modified the library so it can work with vector-icons! U should check it out! https://github.com/diego3799/CustomBottomTabNavigator

darmonlyone commented 3 years ago

just use png with 3 sizes like him ex:mask.png, mask@2x.png, mask@3x.png. Its work fine for me