{"action":"closed","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":[{"url":"https://api.github.com/repos/aksonov/react-native-router-flux/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2016-05-05T12:36:17Z","updated_at":"2016-06-08T07:38:37Z","closed_at":"2016-06-08T07:38:37Z","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"}}
{"actor":{"display_login":"aksonov"}}