检查`Drawer Sidebar`的渲染方法 [英] Check the render method of `Drawer Sidebar`
本文介绍了检查`Drawer Sidebar`的渲染方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用 React-navigation 模块,并且我创建了 DrawerContent
并且出现了这个错误:检查抽屉侧边栏"的渲染方法
如何修复此错误?
I'm using React-navigation module, and I Created DrawerContent
and I Got this Error:
Check the render method of "Drawer Sidebar"
How Can I Fix this Error?
默认代码没问题:contentComponent: props =><ScrollView><DrawerItems {...props}/></ScrollView>
我的新代码不正常:contentComponent:抽屉内容
和const DrawerContent = (props) =>(<ScrollView><DrawerItems {...props}/></ScrollView>)
我也打开了这个问题:(https://github.com/反应社区/反应导航/问题/2175)
I opened This Issue too: (https://github.com/react-community/react-navigation/issues/2175)
推荐答案
已解决 ✔️contentComponent: props =><DrawerContent {...props}/>
这篇关于检查`Drawer Sidebar`的渲染方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文