在我的react native项目中,我使用application_readable
中的DrawerNavigator
组件为特定组件创建了一个抽屉,这样它就不会在其他组件中显示,但是抽屉在我之后就不会显示添加了它,请问我在做什么错
HOME.JS(儿童组件)
react-navigation
APP.JS
import {DrawerNavigator} from "react-navigation";
import Find from "./Find";
const Drawer = DrawerNavigator({
Page1: {
screen: Find
},
}, {
drawerWidth: 300
});
export default class Home extends Component {
return (
<View style={{flex: 1, backgroundColor: '#FAFAFA'}}>
{Drawer}
</View>