{"action":"created","issue":{"url":"https://api.github.com/repos/xiaolin/react-image-gallery/issues/324","repository_url":"https://api.github.com/repos/xiaolin/react-image-gallery","labels_url":"https://api.github.com/repos/xiaolin/react-image-gallery/issues/324/labels{/name}","comments_url":"https://api.github.com/repos/xiaolin/react-image-gallery/issues/324/comments","events_url":"https://api.github.com/repos/xiaolin/react-image-gallery/issues/324/events","html_url":"https://github.com/xiaolin/react-image-gallery/issues/324","id":360660351,"node_id":"MDU6SXNzdWUzNjA2NjAzNTE=","number":324,"title":"Override onClick button on renderRightNav","user":{"login":"quangas","id":16985574,"node_id":"MDQ6VXNlcjE2OTg1NTc0","avatar_url":"https://avatars1.githubusercontent.com/u/16985574?v=4","gravatar_id":"","url":"https://api.github.com/users/quangas","html_url":"https://github.com/quangas","followers_url":"https://api.github.com/users/quangas/followers","following_url":"https://api.github.com/users/quangas/following{/other_user}","gists_url":"https://api.github.com/users/quangas/gists{/gist_id}","starred_url":"https://api.github.com/users/quangas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quangas/subscriptions","organizations_url":"https://api.github.com/users/quangas/orgs","repos_url":"https://api.github.com/users/quangas/repos","events_url":"https://api.github.com/users/quangas/events{/privacy}","received_events_url":"https://api.github.com/users/quangas/received_events","type":"User","site_admin":false},"labels":[{"id":181672175,"node_id":"MDU6TGFiZWwxODE2NzIxNzU=","url":"https://api.github.com/repos/xiaolin/react-image-gallery/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-09-16T17:30:27Z","updated_at":"2018-09-21T19:42:26Z","closed_at":null,"author_association":"NONE","body":"```\r\nrenderRightNav: (onClick, disabled) => {\r\n      return (\r\n        <button\r\n          type='button'\r\n          className='image-gallery-right-nav'\r\n          disabled={disabled}\r\n          onClick={onClick}\r\n          aria-label='Next Slide'\r\n        />\r\n      );\r\n    },\r\n```\r\n\r\nHow can we override onClick function but also keep the slide next automatically.\r\n\r\ni.e\r\n\r\n`onClick={this.handleCustomRightNavClick.bind(this)}`\r\n\r\n```\r\nhandleCustomRightNavClick() {\r\n this.do_something();\r\n nextImage(); // internal next or slideRight\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/xiaolin/react-image-gallery/issues/comments/423650245","html_url":"https://github.com/xiaolin/react-image-gallery/issues/324#issuecomment-423650245","issue_url":"https://api.github.com/repos/xiaolin/react-image-gallery/issues/324","id":423650245,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMzY1MDI0NQ==","user":{"login":"xiaolin","id":1286776,"node_id":"MDQ6VXNlcjEyODY3NzY=","avatar_url":"https://avatars3.githubusercontent.com/u/1286776?v=4","gravatar_id":"","url":"https://api.github.com/users/xiaolin","html_url":"https://github.com/xiaolin","followers_url":"https://api.github.com/users/xiaolin/followers","following_url":"https://api.github.com/users/xiaolin/following{/other_user}","gists_url":"https://api.github.com/users/xiaolin/gists{/gist_id}","starred_url":"https://api.github.com/users/xiaolin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiaolin/subscriptions","organizations_url":"https://api.github.com/users/xiaolin/orgs","repos_url":"https://api.github.com/users/xiaolin/repos","events_url":"https://api.github.com/users/xiaolin/events{/privacy}","received_events_url":"https://api.github.com/users/xiaolin/received_events","type":"User","site_admin":false},"created_at":"2018-09-21T19:42:26Z","updated_at":"2018-09-21T19:42:26Z","author_association":"OWNER","body":"Were you able to solve your issue?"}}
{"actor":{"display_login":"xiaolin"}}