如何使用反应导航在导航抽屉中添加部分分隔符 [英] How to add section divider in navigation drawer using react navigation

查看:37
本文介绍了如何使用反应导航在导航抽屉中添加部分分隔符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设我在抽屉导航中有五个项目.我想在三个项目后添加分隔符.如何使用 react-navigation 添加它.

Suppose I have five items in drawer navigation. I want to add separator after three items. How to add this using react-navigation.

推荐答案

您需要使用 contentComponent 属性进行自定义更改.查看文档

You'll need to use the contentComponent prop to make custom changes. Check out the docs

这篇关于如何使用反应导航在导航抽屉中添加部分分隔符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆