简体   繁体   English

如何在 React Native 中制作像底部标签栏这样的复杂设计?

[英]How to make complicated designs like bottom tab bar in react native?

I want to make a tabbar like below in the application.我想在应用程序中制作一个如下所示的标签栏。 How can I do that?我怎样才能做到这一点?

Make separation of whole design like below.将整个设计分开,如下所示。

  1. take normal icons for 3 buttons.取 3 个按钮的普通图标。

  2. take normal view and align it to bottom, you can create component for it取普通视图并将其与底部对齐,您可以为其创建组件

  3. in component, you create tab bar design by taking background image which contain curve design and home icon required whole rounded icon , just simply put them in view with TouchableOpacity which contains image.在组件中,您通过获取包含曲线设计主页图标的背景图像来创建标签栏设计,需要整个圆形图标,只需使用包含图像的 TouchableOpacity 将它们放在视图中即可。 That's it !!而已 !!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM