{"action":"created","comment":{"url":"https://api.github.com/repos/wix/react-native-navigation/pulls/comments/244106173","pull_request_review_id":188031646,"id":244106173,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0NDEwNjE3Mw==","diff_hunk":"@@ -181,4 +181,29 @@ class MyComponent extends Component {\n \n   }\n }\n-```\n\\ No newline at end of file\n+```\n+\n+## Unsubscribe from the events\n+Use `EventSubscription::remove` method to unsubscribe from the events\n+\n+```js\n+class MyComponent extends Component {\n+  constructor(props) {\n+    super(props);\n+    this.eventSubscription = Navigation.events().bindComponent(this);","path":"docs/docs/events.md","position":15,"original_position":15,"commit_id":"d171e556f777247927ac95ccb5d6584982e6f6ff","original_commit_id":"d171e556f777247927ac95ccb5d6584982e6f6ff","user":{"login":"henrikra","id":12229968,"node_id":"MDQ6VXNlcjEyMjI5OTY4","avatar_url":"https://avatars1.githubusercontent.com/u/12229968?v=4","gravatar_id":"","url":"https://api.github.com/users/henrikra","html_url":"https://github.com/henrikra","followers_url":"https://api.github.com/users/henrikra/followers","following_url":"https://api.github.com/users/henrikra/following{/other_user}","gists_url":"https://api.github.com/users/henrikra/gists{/gist_id}","starred_url":"https://api.github.com/users/henrikra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henrikra/subscriptions","organizations_url":"https://api.github.com/users/henrikra/orgs","repos_url":"https://api.github.com/users/henrikra/repos","events_url":"https://api.github.com/users/henrikra/events{/privacy}","received_events_url":"https://api.github.com/users/henrikra/received_events","type":"User","site_admin":false},"body":"So basically what I suggest is that you update other examples as well to 2019 :D aka dont use constructor","created_at":"2018-12-27T08:39:18Z","updated_at":"2018-12-27T08:39:18Z","html_url":"https://github.com/wix/react-native-navigation/pull/4505#discussion_r244106173","pull_request_url":"https://api.github.com/repos/wix/react-native-navigation/pulls/4505","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/wix/react-native-navigation/pulls/comments/244106173"},"html":{"href":"https://github.com/wix/react-native-navigation/pull/4505#discussion_r244106173"},"pull_request":{"href":"https://api.github.com/repos/wix/react-native-navigation/pulls/4505"}},"in_reply_to_id":244103842},"pull_request":{"url":"https://api.github.com/repos/wix/react-native-navigation/pulls/4505","id":241057113,"node_id":"MDExOlB1bGxSZXF1ZXN0MjQxMDU3MTEz","html_url":"https://github.com/wix/react-native-navigation/pull/4505","diff_url":"https://github.com/wix/react-native-navigation/pull/4505.diff","patch_url":"https://github.com/wix/react-native-navigation/pull/4505.patch","issue_url":"https://api.github.com/repos/wix/react-native-navigation/issues/4505","number":4505,"state":"open","locked":false,"title":"[Doc] The way to unsubscribe from the events","user":{"login":"wagng","id":17483938,"node_id":"MDQ6VXNlcjE3NDgzOTM4","avatar_url":"https://avatars1.githubusercontent.com/u/17483938?v=4","gravatar_id":"","url":"https://api.github.com/users/wagng","html_url":"https://github.com/wagng","followers_url":"https://api.github.com/users/wagng/followers","following_url":"https://api.github.com/users/wagng/following{/other_user}","gists_url":"https://api.github.com/users/wagng/gists{/gist_id}","starred_url":"https://api.github.com/users/wagng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wagng/subscriptions","organizations_url":"https://api.github.com/users/wagng/orgs","repos_url":"https://api.github.com/users/wagng/repos","events_url":"https://api.github.com/users/wagng/events{/privacy}","received_events_url":"https://api.github.com/users/wagng/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-12-27T01:30:55Z","updated_at":"2018-12-27T08:39:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"084516026a12f0eced1734ae65bd3a7285498f88","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/wix/react-native-navigation/pulls/4505/commits","review_comments_url":"https://api.github.com/repos/wix/react-native-navigation/pulls/4505/comments","review_comment_url":"https://api.github.com/repos/wix/react-native-navigation/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wix/react-native-navigation/issues/4505/comments","statuses_url":"https://api.github.com/repos/wix/react-native-navigation/statuses/d171e556f777247927ac95ccb5d6584982e6f6ff","head":{"label":"wagng:master","ref":"master","sha":"d171e556f777247927ac95ccb5d6584982e6f6ff","user":{"login":"wagng","id":17483938,"node_id":"MDQ6VXNlcjE3NDgzOTM4","avatar_url":"https://avatars1.githubusercontent.com/u/17483938?v=4","gravatar_id":"","url":"https://api.github.com/users/wagng","html_url":"https://github.com/wagng","followers_url":"https://api.github.com/users/wagng/followers","following_url":"https://api.github.com/users/wagng/following{/other_user}","gists_url":"https://api.github.com/users/wagng/gists{/gist_id}","starred_url":"https://api.github.com/users/wagng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wagng/subscriptions","organizations_url":"https://api.github.com/users/wagng/orgs","repos_url":"https://api.github.com/users/wagng/repos","events_url":"https://api.github.com/users/wagng/events{/privacy}","received_events_url":"https://api.github.com/users/wagng/received_events","type":"User","site_admin":false},"repo":{"id":163232177,"node_id":"MDEwOlJlcG9zaXRvcnkxNjMyMzIxNzc=","name":"react-native-navigation","full_name":"wagng/react-native-navigation","private":false,"owner":{"login":"wagng","id":17483938,"node_id":"MDQ6VXNlcjE3NDgzOTM4","avatar_url":"https://avatars1.githubusercontent.com/u/17483938?v=4","gravatar_id":"","url":"https://api.github.com/users/wagng","html_url":"https://github.com/wagng","followers_url":"https://api.github.com/users/wagng/followers","following_url":"https://api.github.com/users/wagng/following{/other_user}","gists_url":"https://api.github.com/users/wagng/gists{/gist_id}","starred_url":"https://api.github.com/users/wagng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wagng/subscriptions","organizations_url":"https://api.github.com/users/wagng/orgs","repos_url":"https://api.github.com/users/wagng/repos","events_url":"https://api.github.com/users/wagng/events{/privacy}","received_events_url":"https://api.github.com/users/wagng/received_events","type":"User","site_admin":false},"html_url":"https://github.com/wagng/react-native-navigation","description":"A complete native navigation solution for React Native","fork":true,"url":"https://api.github.com/repos/wagng/react-native-navigation","forks_url":"https://api.github.com/repos/wagng/react-native-navigation/forks","keys_url":"https://api.github.com/repos/wagng/react-native-navigation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wagng/react-native-navigation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wagng/react-native-navigation/teams","hooks_url":"https://api.github.com/repos/wagng/react-native-navigation/hooks","issue_events_url":"https://api.github.com/repos/wagng/react-native-navigation/issues/events{/number}","events_url":"https://api.github.com/repos/wagng/react-native-navigation/events","assignees_url":"https://api.github.com/repos/wagng/react-native-navigation/assignees{/user}","branches_url":"https://api.github.com/repos/wagng/react-native-navigation/branches{/branch}","tags_url":"https://api.github.com/repos/wagng/react-native-navigation/tags","blobs_url":"https://api.github.com/repos/wagng/react-native-navigation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wagng/react-native-navigation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wagng/react-native-navigation/git/refs{/sha}","trees_url":"https://api.github.com/repos/wagng/react-native-navigation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wagng/react-native-navigation/statuses/{sha}","languages_url":"https://api.github.com/repos/wagng/react-native-navigation/languages","stargazers_url":"https://api.github.com/repos/wagng/react-native-navigation/stargazers","contributors_url":"https://api.github.com/repos/wagng/react-native-navigation/contributors","subscribers_url":"https://api.github.com/repos/wagng/react-native-navigation/subscribers","subscription_url":"https://api.github.com/repos/wagng/react-native-navigation/subscription","commits_url":"https://api.github.com/repos/wagng/react-native-navigation/commits{/sha}","git_commits_url":"https://api.github.com/repos/wagng/react-native-navigation/git/commits{/sha}","comments_url":"https://api.github.com/repos/wagng/react-native-navigation/comments{/number}","issue_comment_url":"https://api.github.com/repos/wagng/react-native-navigation/issues/comments{/number}","contents_url":"https://api.github.com/repos/wagng/react-native-navigation/contents/{+path}","compare_url":"https://api.github.com/repos/wagng/react-native-navigation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wagng/react-native-navigation/merges","archive_url":"https://api.github.com/repos/wagng/react-native-navigation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wagng/react-native-navigation/downloads","issues_url":"https://api.github.com/repos/wagng/react-native-navigation/issues{/number}","pulls_url":"https://api.github.com/repos/wagng/react-native-navigation/pulls{/number}","milestones_url":"https://api.github.com/repos/wagng/react-native-navigation/milestones{/number}","notifications_url":"https://api.github.com/repos/wagng/react-native-navigation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wagng/react-native-navigation/labels{/name}","releases_url":"https://api.github.com/repos/wagng/react-native-navigation/releases{/id}","deployments_url":"https://api.github.com/repos/wagng/react-native-navigation/deployments","created_at":"2018-12-27T01:25:25Z","updated_at":"2018-12-27T01:29:14Z","pushed_at":"2018-12-27T01:29:10Z","git_url":"git://github.com/wagng/react-native-navigation.git","ssh_url":"git@github.com:wagng/react-native-navigation.git","clone_url":"https://github.com/wagng/react-native-navigation.git","svn_url":"https://github.com/wagng/react-native-navigation","homepage":"https://wix.github.io/react-native-navigation/","size":13843,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"wix:master","ref":"master","sha":"9ef60e9bd9f940c47b7efd05ca104b5404a66d3b","user":{"login":"wix","id":686511,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY4NjUxMQ==","avatar_url":"https://avatars1.githubusercontent.com/u/686511?v=4","gravatar_id":"","url":"https://api.github.com/users/wix","html_url":"https://github.com/wix","followers_url":"https://api.github.com/users/wix/followers","following_url":"https://api.github.com/users/wix/following{/other_user}","gists_url":"https://api.github.com/users/wix/gists{/gist_id}","starred_url":"https://api.github.com/users/wix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wix/subscriptions","organizations_url":"https://api.github.com/users/wix/orgs","repos_url":"https://api.github.com/users/wix/repos","events_url":"https://api.github.com/users/wix/events{/privacy}","received_events_url":"https://api.github.com/users/wix/received_events","type":"Organization","site_admin":false},"repo":{"id":53662249,"node_id":"MDEwOlJlcG9zaXRvcnk1MzY2MjI0OQ==","name":"react-native-navigation","full_name":"wix/react-native-navigation","private":false,"owner":{"login":"wix","id":686511,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY4NjUxMQ==","avatar_url":"https://avatars1.githubusercontent.com/u/686511?v=4","gravatar_id":"","url":"https://api.github.com/users/wix","html_url":"https://github.com/wix","followers_url":"https://api.github.com/users/wix/followers","following_url":"https://api.github.com/users/wix/following{/other_user}","gists_url":"https://api.github.com/users/wix/gists{/gist_id}","starred_url":"https://api.github.com/users/wix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wix/subscriptions","organizations_url":"https://api.github.com/users/wix/orgs","repos_url":"https://api.github.com/users/wix/repos","events_url":"https://api.github.com/users/wix/events{/privacy}","received_events_url":"https://api.github.com/users/wix/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/wix/react-native-navigation","description":"A complete native navigation solution for React Native","fork":false,"url":"https://api.github.com/repos/wix/react-native-navigation","forks_url":"https://api.github.com/repos/wix/react-native-navigation/forks","keys_url":"https://api.github.com/repos/wix/react-native-navigation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wix/react-native-navigation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wix/react-native-navigation/teams","hooks_url":"https://api.github.com/repos/wix/react-native-navigation/hooks","issue_events_url":"https://api.github.com/repos/wix/react-native-navigation/issues/events{/number}","events_url":"https://api.github.com/repos/wix/react-native-navigation/events","assignees_url":"https://api.github.com/repos/wix/react-native-navigation/assignees{/user}","branches_url":"https://api.github.com/repos/wix/react-native-navigation/branches{/branch}","tags_url":"https://api.github.com/repos/wix/react-native-navigation/tags","blobs_url":"https://api.github.com/repos/wix/react-native-navigation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wix/react-native-navigation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wix/react-native-navigation/git/refs{/sha}","trees_url":"https://api.github.com/repos/wix/react-native-navigation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wix/react-native-navigation/statuses/{sha}","languages_url":"https://api.github.com/repos/wix/react-native-navigation/languages","stargazers_url":"https://api.github.com/repos/wix/react-native-navigation/stargazers","contributors_url":"https://api.github.com/repos/wix/react-native-navigation/contributors","subscribers_url":"https://api.github.com/repos/wix/react-native-navigation/subscribers","subscription_url":"https://api.github.com/repos/wix/react-native-navigation/subscription","commits_url":"https://api.github.com/repos/wix/react-native-navigation/commits{/sha}","git_commits_url":"https://api.github.com/repos/wix/react-native-navigation/git/commits{/sha}","comments_url":"https://api.github.com/repos/wix/react-native-navigation/comments{/number}","issue_comment_url":"https://api.github.com/repos/wix/react-native-navigation/issues/comments{/number}","contents_url":"https://api.github.com/repos/wix/react-native-navigation/contents/{+path}","compare_url":"https://api.github.com/repos/wix/react-native-navigation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wix/react-native-navigation/merges","archive_url":"https://api.github.com/repos/wix/react-native-navigation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wix/react-native-navigation/downloads","issues_url":"https://api.github.com/repos/wix/react-native-navigation/issues{/number}","pulls_url":"https://api.github.com/repos/wix/react-native-navigation/pulls{/number}","milestones_url":"https://api.github.com/repos/wix/react-native-navigation/milestones{/number}","notifications_url":"https://api.github.com/repos/wix/react-native-navigation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wix/react-native-navigation/labels{/name}","releases_url":"https://api.github.com/repos/wix/react-native-navigation/releases{/id}","deployments_url":"https://api.github.com/repos/wix/react-native-navigation/deployments","created_at":"2016-03-11T11:22:54Z","updated_at":"2018-12-27T08:31:16Z","pushed_at":"2018-12-27T01:30:56Z","git_url":"git://github.com/wix/react-native-navigation.git","ssh_url":"git@github.com:wix/react-native-navigation.git","clone_url":"https://github.com/wix/react-native-navigation.git","svn_url":"https://github.com/wix/react-native-navigation","homepage":"https://wix.github.io/react-native-navigation/","size":13839,"stargazers_count":9361,"watchers_count":9361,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":2006,"mirror_url":null,"archived":false,"open_issues_count":148,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":2006,"open_issues":148,"watchers":9361,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wix/react-native-navigation/pulls/4505"},"html":{"href":"https://github.com/wix/react-native-navigation/pull/4505"},"issue":{"href":"https://api.github.com/repos/wix/react-native-navigation/issues/4505"},"comments":{"href":"https://api.github.com/repos/wix/react-native-navigation/issues/4505/comments"},"review_comments":{"href":"https://api.github.com/repos/wix/react-native-navigation/pulls/4505/comments"},"review_comment":{"href":"https://api.github.com/repos/wix/react-native-navigation/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wix/react-native-navigation/pulls/4505/commits"},"statuses":{"href":"https://api.github.com/repos/wix/react-native-navigation/statuses/d171e556f777247927ac95ccb5d6584982e6f6ff"}},"author_association":"NONE"}}
{"actor":{"display_login":"henrikra"}}