Open sclanc opened 7 years ago
try with:
` <Drawer ref="myDrawer"
` then you open/close it like this:
this.refs.myDrawer.open() this.refs.myDrawer.close()
closeDrawer = () => {
this.drawer._root.close()
};
openDrawer = () => {
//alert("open");
debugger
this.drawer._root.open()
};
<Drawer
ref={(ref) => { this.drawer = ref; }}
content={
<Container>
<NavBar openDrawermethod={()=>this.openDrawer()}/>
</Container>
</Drawer>
constructor(props) { super(props) _Setting = new Setting(); }
'
<Bar></Bar>
<PhotoGrid></PhotoGrid>
<FooterClass> </FooterClass>
</View>'
Having followed the usage docs, and examples very carefully I am lost as to where I went wrong here, Do the docs need to be updated? What am I doing wrong?