检查`Drawer Sidebar`的渲染方法

Check the render method of `Drawer Sidebar`

我正在使用 React-navigation 模块,我创建了 DrawerContent 并且遇到了这个错误:
Check the render method of "Drawer Sidebar"
如何修复此错误?

默认密码可以:
contentComponent: props => <ScrollView><DrawerItems {...props} /></ScrollView>

我的新密码不对:
contentComponent: DrawerContent

const DrawerContent = (props) => (<ScrollView><DrawerItems {...props} /></ScrollView>)

我也打开了这期:(https://github.com/react-community/react-navigation/issues/2175)

已解决✔️
contentComponent: props => <DrawerContent {...props} />

我用这个解决了:

contentComponent: props => <DrawerNavigatorItems {...this.props} />