{"action":"created","issue":{"url":"https://api.github.com/repos/wix/react-native-navigation/issues/274","repository_url":"https://api.github.com/repos/wix/react-native-navigation","labels_url":"https://api.github.com/repos/wix/react-native-navigation/issues/274/labels{/name}","comments_url":"https://api.github.com/repos/wix/react-native-navigation/issues/274/comments","events_url":"https://api.github.com/repos/wix/react-native-navigation/issues/274/events","html_url":"https://github.com/wix/react-native-navigation/issues/274","id":174510903,"number":274,"title":"leftButton event not happening on Android","user":{"login":"adamski","id":14980,"avatar_url":"https://avatars.githubusercontent.com/u/14980?v=3","gravatar_id":"","url":"https://api.github.com/users/adamski","html_url":"https://github.com/adamski","followers_url":"https://api.github.com/users/adamski/followers","following_url":"https://api.github.com/users/adamski/following{/other_user}","gists_url":"https://api.github.com/users/adamski/gists{/gist_id}","starred_url":"https://api.github.com/users/adamski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamski/subscriptions","organizations_url":"https://api.github.com/users/adamski/orgs","repos_url":"https://api.github.com/users/adamski/repos","events_url":"https://api.github.com/users/adamski/events{/privacy}","received_events_url":"https://api.github.com/users/adamski/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"guyca","id":12352397,"avatar_url":"https://avatars.githubusercontent.com/u/12352397?v=3","gravatar_id":"","url":"https://api.github.com/users/guyca","html_url":"https://github.com/guyca","followers_url":"https://api.github.com/users/guyca/followers","following_url":"https://api.github.com/users/guyca/following{/other_user}","gists_url":"https://api.github.com/users/guyca/gists{/gist_id}","starred_url":"https://api.github.com/users/guyca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guyca/subscriptions","organizations_url":"https://api.github.com/users/guyca/orgs","repos_url":"https://api.github.com/users/guyca/repos","events_url":"https://api.github.com/users/guyca/events{/privacy}","received_events_url":"https://api.github.com/users/guyca/received_events","type":"User","site_admin":false},"assignees":[{"login":"guyca","id":12352397,"avatar_url":"https://avatars.githubusercontent.com/u/12352397?v=3","gravatar_id":"","url":"https://api.github.com/users/guyca","html_url":"https://github.com/guyca","followers_url":"https://api.github.com/users/guyca/followers","following_url":"https://api.github.com/users/guyca/following{/other_user}","gists_url":"https://api.github.com/users/guyca/gists{/gist_id}","starred_url":"https://api.github.com/users/guyca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guyca/subscriptions","organizations_url":"https://api.github.com/users/guyca/orgs","repos_url":"https://api.github.com/users/guyca/repos","events_url":"https://api.github.com/users/guyca/events{/privacy}","received_events_url":"https://api.github.com/users/guyca/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2016-09-01T12:31:04Z","updated_at":"2016-09-01T16:34:01Z","closed_at":null,"body":"I'm trying to get the leftButton event to respond on Android and not having much luck. \r\nI get events from the right button fine. \r\n\r\nI am trying to pop up a modal on left button press. This has been working on iOS (with v1.x, I'm now on v2.0 and focusing on Android)\r\n\r\nIn my Component:\r\n\r\n```js\r\n  static navigatorButtons = {\r\n    leftButtons: [\r\n      {\r\n        icon: require('../../../images/navicon_menu.png'),\r\n        id: 'sideMenu'\r\n      }\r\n    ],\r\n    rightButtons: [\r\n      {\r\n        icon: require('../../../images/navicon_edit.png'),\r\n        id: 'settings'\r\n      }\r\n    ]\r\n  }\r\n\r\n  constructor(props) {\r\n    super(props)\r\n    this.props.navigator.setOnNavigatorEvent(this.onNavigatorEvent.bind(this))\r\n  }\r\n\r\n  onNavigatorEvent(event) {\r\n    console.log (\"navigator event: \"+event.id);\r\n    if (event.id == 'settings') {\r\n      Alert.alert('NavBar', 'settings');\r\n    }\r\n    if (event.id == 'sideMenu') {\r\n      console.log('sideMenu button');\r\n      this.props.navigator.showModal({\r\n        screen: \"myApp.IndexScreen\", // unique ID registered with Navigation.registerScreen\r\n        title: \"List\", // title of the screen as appears in the nav bar (optional)\r\n        passProps: {}, // simple serializable object that will pass as props to the modal (optional)\r\n        navigatorStyle: navigatorStyle, // override the navigator style for the screen, see \"Styling the navigator\" below (optional)\r\n        animationType: 'slide-up' // 'none' / 'slide-up' , appear animation for the modal (optional, default 'slide-up')\r\n      }); \r\n    }\r\n  }\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/wix/react-native-navigation/issues/comments/244136315","html_url":"https://github.com/wix/react-native-navigation/issues/274#issuecomment-244136315","issue_url":"https://api.github.com/repos/wix/react-native-navigation/issues/274","id":244136315,"user":{"login":"adamski","id":14980,"avatar_url":"https://avatars.githubusercontent.com/u/14980?v=3","gravatar_id":"","url":"https://api.github.com/users/adamski","html_url":"https://github.com/adamski","followers_url":"https://api.github.com/users/adamski/followers","following_url":"https://api.github.com/users/adamski/following{/other_user}","gists_url":"https://api.github.com/users/adamski/gists{/gist_id}","starred_url":"https://api.github.com/users/adamski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamski/subscriptions","organizations_url":"https://api.github.com/users/adamski/orgs","repos_url":"https://api.github.com/users/adamski/repos","events_url":"https://api.github.com/users/adamski/events{/privacy}","received_events_url":"https://api.github.com/users/adamski/received_events","type":"User","site_admin":false},"created_at":"2016-09-01T16:34:01Z","updated_at":"2016-09-01T16:34:01Z","body":"Yes that's correct.  "}}
{"actor":{"display_login":"adamski"}}