This repository has been archived by the owner on Sep 13, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 433
Open the menu with action? #205
Comments
I'm using this branch to do it with props #175 It has some bugs thou. |
You can change your menu state by using |
Thanks but this does not helps since the main view is actually added inside the SideMenu component. render: function() {
// console.log(this.props.SideMenu);
// console.log(SideMenu);
var menu = <SideMenuView navigator={this.props.navigator}/>;
var contentView = <HomePage navigator={this.props.navigator} menu={SideMenu} />;
switch(this.props.component){
case 'home':
contentView = <HomePage navigator={this.props.navigator} menu={SideMenu} />;
break;
case 'checklist':
contentView = <CheckList navigator={this.props.navigator} menu={SideMenu} />;
break;
case 'checklistnewitem':
contentView = <CheckListNewItem navigator={this.props.navigator} menu={SideMenu} />;
break;
case 'profile':
contentView = <ProfilePage myprofile={true} navigator={this.props.navigator} menu={SideMenu} />;
break;
default:
contentView = <HomePage navigator={this.props.navigator} menu={SideMenu} />;
break;
}
return (
<SideMenu isOpen={false} onChange={ () => { console.log("Open action "+Date.now()); } } edgeHitWidth={30} openMenuOffset={(SCREEN_WIDTH*2)/3} menu={menu} menuPosition="left" >
{contentView}
</SideMenu>
); |
Sorry ignore the previous comment. I figured it out :) Thanks for point the example. |
👍 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
This is a great menu plugin but it lacks the option to open the menu with action? like with user clicks the menu button (in the title bar)?
Do we have that feature or somehow we can do this?
The text was updated successfully, but these errors were encountered: