2017-07-18 80 views
0

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

回答

0

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