{"action":"created","comment":{"url":"https://api.github.com/repos/mattermost/mattermost-mobile/pulls/comments/96149132","pull_request_review_id":16724795,"id":96149132,"diff_hunk":"@@ -0,0 +1,53 @@\n+// Copyright (c) 2016 Mattermost, Inc. All Rights Reserved.\n+// See License.txt for license information.\n+\n+import React, {Component, PropTypes} from 'react';\n+import {Animated, Dimensions} from 'react-native';\n+\n+const AnimatedView = Animated.View;\n+const {width: deviceWidth, height: deviceHeight} = Dimensions.get('window');\n+\n+export default class ChannelModel extends Component {\n+    static propTypes = {\n+        children: PropTypes.node,\n+        duration: PropTypes.number,\n+        topOffset: PropTypes.number,\n+        theme: React.PropTypes.object.isRequired,\n+        visible: PropTypes.bool.isRequired\n+    }\n+\n+    static defaultProps = {\n+        duration: 400,","path":"app/components/channel_modal.js","position":20,"original_position":20,"commit_id":"a18f9b316a01e72d98bdf60d907c6f57470bb295","original_commit_id":"e0864c44b56ab0e5124157fd557c4e1a5e22faab","user":{"login":"enahum","id":6757047,"avatar_url":"https://avatars.githubusercontent.com/u/6757047?v=3","gravatar_id":"","url":"https://api.github.com/users/enahum","html_url":"https://github.com/enahum","followers_url":"https://api.github.com/users/enahum/followers","following_url":"https://api.github.com/users/enahum/following{/other_user}","gists_url":"https://api.github.com/users/enahum/gists{/gist_id}","starred_url":"https://api.github.com/users/enahum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enahum/subscriptions","organizations_url":"https://api.github.com/users/enahum/orgs","repos_url":"https://api.github.com/users/enahum/repos","events_url":"https://api.github.com/users/enahum/events{/privacy}","received_events_url":"https://api.github.com/users/enahum/received_events","type":"User","site_admin":false},"body":"Totally agree here, lets use constants whenever possible, the is a **constants** folder in `app` and `service` just to handle scenarios like this","created_at":"2017-01-15T22:13:00Z","updated_at":"2017-01-15T22:36:29Z","html_url":"https://github.com/mattermost/mattermost-mobile/pull/162#discussion_r96149132","pull_request_url":"https://api.github.com/repos/mattermost/mattermost-mobile/pulls/162","_links":{"self":{"href":"https://api.github.com/repos/mattermost/mattermost-mobile/pulls/comments/96149132"},"html":{"href":"https://github.com/mattermost/mattermost-mobile/pull/162#discussion_r96149132"},"pull_request":{"href":"https://api.github.com/repos/mattermost/mattermost-mobile/pulls/162"}}},"pull_request":{"url":"https://api.github.com/repos/mattermost/mattermost-mobile/pulls/162","id":101500219,"html_url":"https://github.com/mattermost/mattermost-mobile/pull/162","diff_url":"https://github.com/mattermost/mattermost-mobile/pull/162.diff","patch_url":"https://github.com/mattermost/mattermost-mobile/pull/162.patch","issue_url":"https://api.github.com/repos/mattermost/mattermost-mobile/issues/162","number":162,"state":"open","locked":false,"title":"Add static channel dropdown menu","user":{"login":"csduarte","id":9515253,"avatar_url":"https://avatars.githubusercontent.com/u/9515253?v=3","gravatar_id":"","url":"https://api.github.com/users/csduarte","html_url":"https://github.com/csduarte","followers_url":"https://api.github.com/users/csduarte/followers","following_url":"https://api.github.com/users/csduarte/following{/other_user}","gists_url":"https://api.github.com/users/csduarte/gists{/gist_id}","starred_url":"https://api.github.com/users/csduarte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csduarte/subscriptions","organizations_url":"https://api.github.com/users/csduarte/orgs","repos_url":"https://api.github.com/users/csduarte/repos","events_url":"https://api.github.com/users/csduarte/events{/privacy}","received_events_url":"https://api.github.com/users/csduarte/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-01-13T19:12:53Z","updated_at":"2017-01-15T22:36:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e5276519ed04b2e28e50c1074ca8586102a773b5","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/mattermost/mattermost-mobile/pulls/162/commits","review_comments_url":"https://api.github.com/repos/mattermost/mattermost-mobile/pulls/162/comments","review_comment_url":"https://api.github.com/repos/mattermost/mattermost-mobile/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mattermost/mattermost-mobile/issues/162/comments","statuses_url":"https://api.github.com/repos/mattermost/mattermost-mobile/statuses/a18f9b316a01e72d98bdf60d907c6f57470bb295","head":{"label":"csduarte:add-static-channel-dropdown","ref":"add-static-channel-dropdown","sha":"a18f9b316a01e72d98bdf60d907c6f57470bb295","user":{"login":"csduarte","id":9515253,"avatar_url":"https://avatars.githubusercontent.com/u/9515253?v=3","gravatar_id":"","url":"https://api.github.com/users/csduarte","html_url":"https://github.com/csduarte","followers_url":"https://api.github.com/users/csduarte/followers","following_url":"https://api.github.com/users/csduarte/following{/other_user}","gists_url":"https://api.github.com/users/csduarte/gists{/gist_id}","starred_url":"https://api.github.com/users/csduarte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csduarte/subscriptions","organizations_url":"https://api.github.com/users/csduarte/orgs","repos_url":"https://api.github.com/users/csduarte/repos","events_url":"https://api.github.com/users/csduarte/events{/privacy}","received_events_url":"https://api.github.com/users/csduarte/received_events","type":"User","site_admin":false},"repo":{"id":76510157,"name":"mattermost-mobile","full_name":"csduarte/mattermost-mobile","owner":{"login":"csduarte","id":9515253,"avatar_url":"https://avatars.githubusercontent.com/u/9515253?v=3","gravatar_id":"","url":"https://api.github.com/users/csduarte","html_url":"https://github.com/csduarte","followers_url":"https://api.github.com/users/csduarte/followers","following_url":"https://api.github.com/users/csduarte/following{/other_user}","gists_url":"https://api.github.com/users/csduarte/gists{/gist_id}","starred_url":"https://api.github.com/users/csduarte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csduarte/subscriptions","organizations_url":"https://api.github.com/users/csduarte/orgs","repos_url":"https://api.github.com/users/csduarte/repos","events_url":"https://api.github.com/users/csduarte/events{/privacy}","received_events_url":"https://api.github.com/users/csduarte/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/csduarte/mattermost-mobile","description":null,"fork":true,"url":"https://api.github.com/repos/csduarte/mattermost-mobile","forks_url":"https://api.github.com/repos/csduarte/mattermost-mobile/forks","keys_url":"https://api.github.com/repos/csduarte/mattermost-mobile/keys{/key_id}","collaborators_url":"https://api.github.com/repos/csduarte/mattermost-mobile/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/csduarte/mattermost-mobile/teams","hooks_url":"https://api.github.com/repos/csduarte/mattermost-mobile/hooks","issue_events_url":"https://api.github.com/repos/csduarte/mattermost-mobile/issues/events{/number}","events_url":"https://api.github.com/repos/csduarte/mattermost-mobile/events","assignees_url":"https://api.github.com/repos/csduarte/mattermost-mobile/assignees{/user}","branches_url":"https://api.github.com/repos/csduarte/mattermost-mobile/branches{/branch}","tags_url":"https://api.github.com/repos/csduarte/mattermost-mobile/tags","blobs_url":"https://api.github.com/repos/csduarte/mattermost-mobile/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/csduarte/mattermost-mobile/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/csduarte/mattermost-mobile/git/refs{/sha}","trees_url":"https://api.github.com/repos/csduarte/mattermost-mobile/git/trees{/sha}","statuses_url":"https://api.github.com/repos/csduarte/mattermost-mobile/statuses/{sha}","languages_url":"https://api.github.com/repos/csduarte/mattermost-mobile/languages","stargazers_url":"https://api.github.com/repos/csduarte/mattermost-mobile/stargazers","contributors_url":"https://api.github.com/repos/csduarte/mattermost-mobile/contributors","subscribers_url":"https://api.github.com/repos/csduarte/mattermost-mobile/subscribers","subscription_url":"https://api.github.com/repos/csduarte/mattermost-mobile/subscription","commits_url":"https://api.github.com/repos/csduarte/mattermost-mobile/commits{/sha}","git_commits_url":"https://api.github.com/repos/csduarte/mattermost-mobile/git/commits{/sha}","comments_url":"https://api.github.com/repos/csduarte/mattermost-mobile/comments{/number}","issue_comment_url":"https://api.github.com/repos/csduarte/mattermost-mobile/issues/comments{/number}","contents_url":"https://api.github.com/repos/csduarte/mattermost-mobile/contents/{+path}","compare_url":"https://api.github.com/repos/csduarte/mattermost-mobile/compare/{base}...{head}","merges_url":"https://api.github.com/repos/csduarte/mattermost-mobile/merges","archive_url":"https://api.github.com/repos/csduarte/mattermost-mobile/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/csduarte/mattermost-mobile/downloads","issues_url":"https://api.github.com/repos/csduarte/mattermost-mobile/issues{/number}","pulls_url":"https://api.github.com/repos/csduarte/mattermost-mobile/pulls{/number}","milestones_url":"https://api.github.com/repos/csduarte/mattermost-mobile/milestones{/number}","notifications_url":"https://api.github.com/repos/csduarte/mattermost-mobile/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/csduarte/mattermost-mobile/labels{/name}","releases_url":"https://api.github.com/repos/csduarte/mattermost-mobile/releases{/id}","deployments_url":"https://api.github.com/repos/csduarte/mattermost-mobile/deployments","created_at":"2016-12-15T00:58:03Z","updated_at":"2016-12-15T00:58:04Z","pushed_at":"2017-01-14T21:21:37Z","git_url":"git://github.com/csduarte/mattermost-mobile.git","ssh_url":"git@github.com:csduarte/mattermost-mobile.git","clone_url":"https://github.com/csduarte/mattermost-mobile.git","svn_url":"https://github.com/csduarte/mattermost-mobile","homepage":null,"size":1207,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mattermost:master","ref":"master","sha":"d0481605fb7c824e7b429dc93886cd6838bb19b8","user":{"login":"mattermost","id":9828093,"avatar_url":"https://avatars.githubusercontent.com/u/9828093?v=3","gravatar_id":"","url":"https://api.github.com/users/mattermost","html_url":"https://github.com/mattermost","followers_url":"https://api.github.com/users/mattermost/followers","following_url":"https://api.github.com/users/mattermost/following{/other_user}","gists_url":"https://api.github.com/users/mattermost/gists{/gist_id}","starred_url":"https://api.github.com/users/mattermost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattermost/subscriptions","organizations_url":"https://api.github.com/users/mattermost/orgs","repos_url":"https://api.github.com/users/mattermost/repos","events_url":"https://api.github.com/users/mattermost/events{/privacy}","received_events_url":"https://api.github.com/users/mattermost/received_events","type":"Organization","site_admin":false},"repo":{"id":70265724,"name":"mattermost-mobile","full_name":"mattermost/mattermost-mobile","owner":{"login":"mattermost","id":9828093,"avatar_url":"https://avatars.githubusercontent.com/u/9828093?v=3","gravatar_id":"","url":"https://api.github.com/users/mattermost","html_url":"https://github.com/mattermost","followers_url":"https://api.github.com/users/mattermost/followers","following_url":"https://api.github.com/users/mattermost/following{/other_user}","gists_url":"https://api.github.com/users/mattermost/gists{/gist_id}","starred_url":"https://api.github.com/users/mattermost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattermost/subscriptions","organizations_url":"https://api.github.com/users/mattermost/orgs","repos_url":"https://api.github.com/users/mattermost/repos","events_url":"https://api.github.com/users/mattermost/events{/privacy}","received_events_url":"https://api.github.com/users/mattermost/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mattermost/mattermost-mobile","description":null,"fork":false,"url":"https://api.github.com/repos/mattermost/mattermost-mobile","forks_url":"https://api.github.com/repos/mattermost/mattermost-mobile/forks","keys_url":"https://api.github.com/repos/mattermost/mattermost-mobile/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mattermost/mattermost-mobile/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mattermost/mattermost-mobile/teams","hooks_url":"https://api.github.com/repos/mattermost/mattermost-mobile/hooks","issue_events_url":"https://api.github.com/repos/mattermost/mattermost-mobile/issues/events{/number}","events_url":"https://api.github.com/repos/mattermost/mattermost-mobile/events","assignees_url":"https://api.github.com/repos/mattermost/mattermost-mobile/assignees{/user}","branches_url":"https://api.github.com/repos/mattermost/mattermost-mobile/branches{/branch}","tags_url":"https://api.github.com/repos/mattermost/mattermost-mobile/tags","blobs_url":"https://api.github.com/repos/mattermost/mattermost-mobile/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mattermost/mattermost-mobile/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mattermost/mattermost-mobile/git/refs{/sha}","trees_url":"https://api.github.com/repos/mattermost/mattermost-mobile/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mattermost/mattermost-mobile/statuses/{sha}","languages_url":"https://api.github.com/repos/mattermost/mattermost-mobile/languages","stargazers_url":"https://api.github.com/repos/mattermost/mattermost-mobile/stargazers","contributors_url":"https://api.github.com/repos/mattermost/mattermost-mobile/contributors","subscribers_url":"https://api.github.com/repos/mattermost/mattermost-mobile/subscribers","subscription_url":"https://api.github.com/repos/mattermost/mattermost-mobile/subscription","commits_url":"https://api.github.com/repos/mattermost/mattermost-mobile/commits{/sha}","git_commits_url":"https://api.github.com/repos/mattermost/mattermost-mobile/git/commits{/sha}","comments_url":"https://api.github.com/repos/mattermost/mattermost-mobile/comments{/number}","issue_comment_url":"https://api.github.com/repos/mattermost/mattermost-mobile/issues/comments{/number}","contents_url":"https://api.github.com/repos/mattermost/mattermost-mobile/contents/{+path}","compare_url":"https://api.github.com/repos/mattermost/mattermost-mobile/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mattermost/mattermost-mobile/merges","archive_url":"https://api.github.com/repos/mattermost/mattermost-mobile/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mattermost/mattermost-mobile/downloads","issues_url":"https://api.github.com/repos/mattermost/mattermost-mobile/issues{/number}","pulls_url":"https://api.github.com/repos/mattermost/mattermost-mobile/pulls{/number}","milestones_url":"https://api.github.com/repos/mattermost/mattermost-mobile/milestones{/number}","notifications_url":"https://api.github.com/repos/mattermost/mattermost-mobile/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mattermost/mattermost-mobile/labels{/name}","releases_url":"https://api.github.com/repos/mattermost/mattermost-mobile/releases{/id}","deployments_url":"https://api.github.com/repos/mattermost/mattermost-mobile/deployments","created_at":"2016-10-07T16:52:32Z","updated_at":"2017-01-13T13:39:20Z","pushed_at":"2017-01-14T21:21:38Z","git_url":"git://github.com/mattermost/mattermost-mobile.git","ssh_url":"git@github.com:mattermost/mattermost-mobile.git","clone_url":"https://github.com/mattermost/mattermost-mobile.git","svn_url":"https://github.com/mattermost/mattermost-mobile","homepage":null,"size":1171,"stargazers_count":29,"watchers_count":29,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":45,"forks":8,"open_issues":45,"watchers":29,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mattermost/mattermost-mobile/pulls/162"},"html":{"href":"https://github.com/mattermost/mattermost-mobile/pull/162"},"issue":{"href":"https://api.github.com/repos/mattermost/mattermost-mobile/issues/162"},"comments":{"href":"https://api.github.com/repos/mattermost/mattermost-mobile/issues/162/comments"},"review_comments":{"href":"https://api.github.com/repos/mattermost/mattermost-mobile/pulls/162/comments"},"review_comment":{"href":"https://api.github.com/repos/mattermost/mattermost-mobile/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mattermost/mattermost-mobile/pulls/162/commits"},"statuses":{"href":"https://api.github.com/repos/mattermost/mattermost-mobile/statuses/a18f9b316a01e72d98bdf60d907c6f57470bb295"}}}}
{"actor":{"display_login":"enahum"}}