0
的渲染方法,我創建DrawerContent
,我得到這個錯誤:
Check the render method of "Drawer Sidebar"
我如何解決這個錯誤? 檢查我使用的陣營導航模塊`抽屜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 )