{"action":"created","issue":{"url":"https://api.github.com/repos/aksonov/react-native-router-flux/issues/634","repository_url":"https://api.github.com/repos/aksonov/react-native-router-flux","labels_url":"https://api.github.com/repos/aksonov/react-native-router-flux/issues/634/labels{/name}","comments_url":"https://api.github.com/repos/aksonov/react-native-router-flux/issues/634/comments","events_url":"https://api.github.com/repos/aksonov/react-native-router-flux/issues/634/events","html_url":"https://github.com/aksonov/react-native-router-flux/issues/634","id":153223480,"number":634,"title":"Enable/Disable rightButton","user":{"login":"NIcholasJudd","id":7736580,"avatar_url":"https://avatars.githubusercontent.com/u/7736580?v=3","gravatar_id":"","url":"https://api.github.com/users/NIcholasJudd","html_url":"https://github.com/NIcholasJudd","followers_url":"https://api.github.com/users/NIcholasJudd/followers","following_url":"https://api.github.com/users/NIcholasJudd/following{/other_user}","gists_url":"https://api.github.com/users/NIcholasJudd/gists{/gist_id}","starred_url":"https://api.github.com/users/NIcholasJudd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NIcholasJudd/subscriptions","organizations_url":"https://api.github.com/users/NIcholasJudd/orgs","repos_url":"https://api.github.com/users/NIcholasJudd/repos","events_url":"https://api.github.com/users/NIcholasJudd/events{/privacy}","received_events_url":"https://api.github.com/users/NIcholasJudd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-05T12:36:17Z","updated_at":"2016-05-06T12:11:28Z","closed_at":null,"body":"I need to be able to enable and disable the rightButton on the nav bar from within a component however i cant seem to find a way to achieve this I've managed to \"disable\" the button by making the onRight=()=>null but cant work out how to change it to ()=>Actions.ProgramBuilder2({title: 'My Action Plan'})\r\n\r\n`<Scene key=\"ProgramBuilder1\" component={ProgramBuilder1} panHandlers={null}\r\n                               sceneStyle={styles.scene} //initial={true}\r\n                               title=\"Check In\"\r\n                               onRight={enabled === true ? ()=>Actions.ProgramBuilder2({title: 'My Action Plan'}): ()=>undefined}\r\n                               rightButtonTextStyle={[styles.navTitle, styles.navTitleDisabled]} rightTitle=\"Next\"\r\n                        />`\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/aksonov/react-native-router-flux/issues/comments/217424085","html_url":"https://github.com/aksonov/react-native-router-flux/issues/634#issuecomment-217424085","issue_url":"https://api.github.com/repos/aksonov/react-native-router-flux/issues/634","id":217424085,"user":{"login":"andpor","id":10236571,"avatar_url":"https://avatars.githubusercontent.com/u/10236571?v=3","gravatar_id":"","url":"https://api.github.com/users/andpor","html_url":"https://github.com/andpor","followers_url":"https://api.github.com/users/andpor/followers","following_url":"https://api.github.com/users/andpor/following{/other_user}","gists_url":"https://api.github.com/users/andpor/gists{/gist_id}","starred_url":"https://api.github.com/users/andpor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andpor/subscriptions","organizations_url":"https://api.github.com/users/andpor/orgs","repos_url":"https://api.github.com/users/andpor/repos","events_url":"https://api.github.com/users/andpor/events{/privacy}","received_events_url":"https://api.github.com/users/andpor/received_events","type":"User","site_admin":false},"created_at":"2016-05-06T12:11:28Z","updated_at":"2016-05-06T12:11:28Z","body":"I am having a similar issue. The left/right buttons are dynamic based on the state of the current scene. Most of the time the buttons are not even visible and only appear when conditions are met and application decides that transition should be made available.\r\n\r\nThis is really a very fundamental piece of functionality. Would be great to have this implemented inside the package. Otherwise have to do customizations....\r\n\r\nThis is the only piece missing to make this routing package a complete navigation package..\r\n\r\n"}}