{"action":"created","comment":{"url":"https://api.github.com/repos/andrewowen/mtgCounter/pulls/comments/210605580","pull_request_review_id":146855232,"id":210605580,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMDYwNTU4MA==","diff_hunk":"@@ -0,0 +1,84 @@\n+import React, { Component } from 'react';\n+import { StyleSheet, Text, TouchableOpacity, View } from 'react-native';\n+import PlayerLifeButton from './PlayerLifeButton';\n+\n+export class PlayerComponent extends Component {\n+  state = {\n+    currentLife: 40,\n+    minLife: 0\n+  };\n+  addLife = () => {\n+    this.setState((prevState, props) => ({\n+      currentLife: prevState.currentLife + 1\n+    }));\n+  };\n+\n+  subtractLife = () => {\n+    this.setState((prevState, props) => ({\n+      currentLife: prevState.currentLife - 1\n+    }));\n+  };\n+\n+  render() {\n+    const { store } = this.props;\n+    return (\n+      <View style={styles.playerContainer}>\n+        <View style={styles.playerLifeContainer}>\n+          <PlayerLifeButton\n+            buttonText=\"+\"\n+            onPress={this.addLife}\n+            currentLife={this.state.currentLife}\n+          />\n+          <Text style={styles.playerLifeText}>{this.state.currentLife}</Text>\n+          <PlayerLifeButton\n+            buttonText=\"-\"\n+            onPress={this.subtractLife}\n+            currentLife={this.state.currentLife}\n+          />\n+        </View>\n+        <TouchableOpacity\n+          style={{\n+            flex: 1,\n+            flexDirection: 'row-reverse',\n+            fontFamily: 'SourceCodePro-Bold'\n+          }}\n+        >\n+          <View\n+            style={{\n+              alignContent: 'center',\n+              justifyContent: 'center',\n+              alignContent: 'center'\n+            }}\n+          >","path":"src/components/PlayerComponent.js","position":52,"original_position":52,"commit_id":"24999e61d5a145053297443b4dcb50fbda11fa06","original_commit_id":"6cb00e89907f4047e18f57d0ab1d4aa837382b70","user":{"login":"andrewowen","id":7965677,"node_id":"MDQ6VXNlcjc5NjU2Nzc=","avatar_url":"https://avatars2.githubusercontent.com/u/7965677?v=4","gravatar_id":"","url":"https://api.github.com/users/andrewowen","html_url":"https://github.com/andrewowen","followers_url":"https://api.github.com/users/andrewowen/followers","following_url":"https://api.github.com/users/andrewowen/following{/other_user}","gists_url":"https://api.github.com/users/andrewowen/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewowen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewowen/subscriptions","organizations_url":"https://api.github.com/users/andrewowen/orgs","repos_url":"https://api.github.com/users/andrewowen/repos","events_url":"https://api.github.com/users/andrewowen/events{/privacy}","received_events_url":"https://api.github.com/users/andrewowen/received_events","type":"User","site_admin":false},"body":"these will be changed in a future push","created_at":"2018-08-16T13:57:55Z","updated_at":"2018-08-16T13:57:55Z","html_url":"https://github.com/andrewowen/mtgCounter/pull/4#discussion_r210605580","pull_request_url":"https://api.github.com/repos/andrewowen/mtgCounter/pulls/4","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/andrewowen/mtgCounter/pulls/comments/210605580"},"html":{"href":"https://github.com/andrewowen/mtgCounter/pull/4#discussion_r210605580"},"pull_request":{"href":"https://api.github.com/repos/andrewowen/mtgCounter/pulls/4"}},"in_reply_to_id":210370155},"pull_request":{"url":"https://api.github.com/repos/andrewowen/mtgCounter/pulls/4","id":208626387,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA4NjI2Mzg3","html_url":"https://github.com/andrewowen/mtgCounter/pull/4","diff_url":"https://github.com/andrewowen/mtgCounter/pull/4.diff","patch_url":"https://github.com/andrewowen/mtgCounter/pull/4.patch","issue_url":"https://api.github.com/repos/andrewowen/mtgCounter/issues/4","number":4,"state":"open","locked":false,"title":"Refactor/clean","user":{"login":"andrewowen","id":7965677,"node_id":"MDQ6VXNlcjc5NjU2Nzc=","avatar_url":"https://avatars2.githubusercontent.com/u/7965677?v=4","gravatar_id":"","url":"https://api.github.com/users/andrewowen","html_url":"https://github.com/andrewowen","followers_url":"https://api.github.com/users/andrewowen/followers","following_url":"https://api.github.com/users/andrewowen/following{/other_user}","gists_url":"https://api.github.com/users/andrewowen/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewowen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewowen/subscriptions","organizations_url":"https://api.github.com/users/andrewowen/orgs","repos_url":"https://api.github.com/users/andrewowen/repos","events_url":"https://api.github.com/users/andrewowen/events{/privacy}","received_events_url":"https://api.github.com/users/andrewowen/received_events","type":"User","site_admin":false},"body":"Clean up some functions","created_at":"2018-08-15T17:24:01Z","updated_at":"2018-08-16T13:57:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"174473797b18dc9dc547a3f81e4870fecc8608bd","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/andrewowen/mtgCounter/pulls/4/commits","review_comments_url":"https://api.github.com/repos/andrewowen/mtgCounter/pulls/4/comments","review_comment_url":"https://api.github.com/repos/andrewowen/mtgCounter/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andrewowen/mtgCounter/issues/4/comments","statuses_url":"https://api.github.com/repos/andrewowen/mtgCounter/statuses/24999e61d5a145053297443b4dcb50fbda11fa06","head":{"label":"andrewowen:refactor/clean","ref":"refactor/clean","sha":"24999e61d5a145053297443b4dcb50fbda11fa06","user":{"login":"andrewowen","id":7965677,"node_id":"MDQ6VXNlcjc5NjU2Nzc=","avatar_url":"https://avatars2.githubusercontent.com/u/7965677?v=4","gravatar_id":"","url":"https://api.github.com/users/andrewowen","html_url":"https://github.com/andrewowen","followers_url":"https://api.github.com/users/andrewowen/followers","following_url":"https://api.github.com/users/andrewowen/following{/other_user}","gists_url":"https://api.github.com/users/andrewowen/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewowen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewowen/subscriptions","organizations_url":"https://api.github.com/users/andrewowen/orgs","repos_url":"https://api.github.com/users/andrewowen/repos","events_url":"https://api.github.com/users/andrewowen/events{/privacy}","received_events_url":"https://api.github.com/users/andrewowen/received_events","type":"User","site_admin":false},"repo":{"id":143066042,"node_id":"MDEwOlJlcG9zaXRvcnkxNDMwNjYwNDI=","name":"mtgCounter","full_name":"andrewowen/mtgCounter","owner":{"login":"andrewowen","id":7965677,"node_id":"MDQ6VXNlcjc5NjU2Nzc=","avatar_url":"https://avatars2.githubusercontent.com/u/7965677?v=4","gravatar_id":"","url":"https://api.github.com/users/andrewowen","html_url":"https://github.com/andrewowen","followers_url":"https://api.github.com/users/andrewowen/followers","following_url":"https://api.github.com/users/andrewowen/following{/other_user}","gists_url":"https://api.github.com/users/andrewowen/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewowen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewowen/subscriptions","organizations_url":"https://api.github.com/users/andrewowen/orgs","repos_url":"https://api.github.com/users/andrewowen/repos","events_url":"https://api.github.com/users/andrewowen/events{/privacy}","received_events_url":"https://api.github.com/users/andrewowen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andrewowen/mtgCounter","description":null,"fork":false,"url":"https://api.github.com/repos/andrewowen/mtgCounter","forks_url":"https://api.github.com/repos/andrewowen/mtgCounter/forks","keys_url":"https://api.github.com/repos/andrewowen/mtgCounter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andrewowen/mtgCounter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andrewowen/mtgCounter/teams","hooks_url":"https://api.github.com/repos/andrewowen/mtgCounter/hooks","issue_events_url":"https://api.github.com/repos/andrewowen/mtgCounter/issues/events{/number}","events_url":"https://api.github.com/repos/andrewowen/mtgCounter/events","assignees_url":"https://api.github.com/repos/andrewowen/mtgCounter/assignees{/user}","branches_url":"https://api.github.com/repos/andrewowen/mtgCounter/branches{/branch}","tags_url":"https://api.github.com/repos/andrewowen/mtgCounter/tags","blobs_url":"https://api.github.com/repos/andrewowen/mtgCounter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andrewowen/mtgCounter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andrewowen/mtgCounter/git/refs{/sha}","trees_url":"https://api.github.com/repos/andrewowen/mtgCounter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andrewowen/mtgCounter/statuses/{sha}","languages_url":"https://api.github.com/repos/andrewowen/mtgCounter/languages","stargazers_url":"https://api.github.com/repos/andrewowen/mtgCounter/stargazers","contributors_url":"https://api.github.com/repos/andrewowen/mtgCounter/contributors","subscribers_url":"https://api.github.com/repos/andrewowen/mtgCounter/subscribers","subscription_url":"https://api.github.com/repos/andrewowen/mtgCounter/subscription","commits_url":"https://api.github.com/repos/andrewowen/mtgCounter/commits{/sha}","git_commits_url":"https://api.github.com/repos/andrewowen/mtgCounter/git/commits{/sha}","comments_url":"https://api.github.com/repos/andrewowen/mtgCounter/comments{/number}","issue_comment_url":"https://api.github.com/repos/andrewowen/mtgCounter/issues/comments{/number}","contents_url":"https://api.github.com/repos/andrewowen/mtgCounter/contents/{+path}","compare_url":"https://api.github.com/repos/andrewowen/mtgCounter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andrewowen/mtgCounter/merges","archive_url":"https://api.github.com/repos/andrewowen/mtgCounter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andrewowen/mtgCounter/downloads","issues_url":"https://api.github.com/repos/andrewowen/mtgCounter/issues{/number}","pulls_url":"https://api.github.com/repos/andrewowen/mtgCounter/pulls{/number}","milestones_url":"https://api.github.com/repos/andrewowen/mtgCounter/milestones{/number}","notifications_url":"https://api.github.com/repos/andrewowen/mtgCounter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andrewowen/mtgCounter/labels{/name}","releases_url":"https://api.github.com/repos/andrewowen/mtgCounter/releases{/id}","deployments_url":"https://api.github.com/repos/andrewowen/mtgCounter/deployments","created_at":"2018-07-31T20:44:08Z","updated_at":"2018-08-15T17:23:10Z","pushed_at":"2018-08-16T13:57:29Z","git_url":"git://github.com/andrewowen/mtgCounter.git","ssh_url":"git@github.com:andrewowen/mtgCounter.git","clone_url":"https://github.com/andrewowen/mtgCounter.git","svn_url":"https://github.com/andrewowen/mtgCounter","homepage":null,"size":1086,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"andrewowen:master","ref":"master","sha":"555956959b6050880e52689a2cb9e4b1f469da0e","user":{"login":"andrewowen","id":7965677,"node_id":"MDQ6VXNlcjc5NjU2Nzc=","avatar_url":"https://avatars2.githubusercontent.com/u/7965677?v=4","gravatar_id":"","url":"https://api.github.com/users/andrewowen","html_url":"https://github.com/andrewowen","followers_url":"https://api.github.com/users/andrewowen/followers","following_url":"https://api.github.com/users/andrewowen/following{/other_user}","gists_url":"https://api.github.com/users/andrewowen/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewowen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewowen/subscriptions","organizations_url":"https://api.github.com/users/andrewowen/orgs","repos_url":"https://api.github.com/users/andrewowen/repos","events_url":"https://api.github.com/users/andrewowen/events{/privacy}","received_events_url":"https://api.github.com/users/andrewowen/received_events","type":"User","site_admin":false},"repo":{"id":143066042,"node_id":"MDEwOlJlcG9zaXRvcnkxNDMwNjYwNDI=","name":"mtgCounter","full_name":"andrewowen/mtgCounter","owner":{"login":"andrewowen","id":7965677,"node_id":"MDQ6VXNlcjc5NjU2Nzc=","avatar_url":"https://avatars2.githubusercontent.com/u/7965677?v=4","gravatar_id":"","url":"https://api.github.com/users/andrewowen","html_url":"https://github.com/andrewowen","followers_url":"https://api.github.com/users/andrewowen/followers","following_url":"https://api.github.com/users/andrewowen/following{/other_user}","gists_url":"https://api.github.com/users/andrewowen/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewowen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewowen/subscriptions","organizations_url":"https://api.github.com/users/andrewowen/orgs","repos_url":"https://api.github.com/users/andrewowen/repos","events_url":"https://api.github.com/users/andrewowen/events{/privacy}","received_events_url":"https://api.github.com/users/andrewowen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andrewowen/mtgCounter","description":null,"fork":false,"url":"https://api.github.com/repos/andrewowen/mtgCounter","forks_url":"https://api.github.com/repos/andrewowen/mtgCounter/forks","keys_url":"https://api.github.com/repos/andrewowen/mtgCounter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andrewowen/mtgCounter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andrewowen/mtgCounter/teams","hooks_url":"https://api.github.com/repos/andrewowen/mtgCounter/hooks","issue_events_url":"https://api.github.com/repos/andrewowen/mtgCounter/issues/events{/number}","events_url":"https://api.github.com/repos/andrewowen/mtgCounter/events","assignees_url":"https://api.github.com/repos/andrewowen/mtgCounter/assignees{/user}","branches_url":"https://api.github.com/repos/andrewowen/mtgCounter/branches{/branch}","tags_url":"https://api.github.com/repos/andrewowen/mtgCounter/tags","blobs_url":"https://api.github.com/repos/andrewowen/mtgCounter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andrewowen/mtgCounter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andrewowen/mtgCounter/git/refs{/sha}","trees_url":"https://api.github.com/repos/andrewowen/mtgCounter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andrewowen/mtgCounter/statuses/{sha}","languages_url":"https://api.github.com/repos/andrewowen/mtgCounter/languages","stargazers_url":"https://api.github.com/repos/andrewowen/mtgCounter/stargazers","contributors_url":"https://api.github.com/repos/andrewowen/mtgCounter/contributors","subscribers_url":"https://api.github.com/repos/andrewowen/mtgCounter/subscribers","subscription_url":"https://api.github.com/repos/andrewowen/mtgCounter/subscription","commits_url":"https://api.github.com/repos/andrewowen/mtgCounter/commits{/sha}","git_commits_url":"https://api.github.com/repos/andrewowen/mtgCounter/git/commits{/sha}","comments_url":"https://api.github.com/repos/andrewowen/mtgCounter/comments{/number}","issue_comment_url":"https://api.github.com/repos/andrewowen/mtgCounter/issues/comments{/number}","contents_url":"https://api.github.com/repos/andrewowen/mtgCounter/contents/{+path}","compare_url":"https://api.github.com/repos/andrewowen/mtgCounter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andrewowen/mtgCounter/merges","archive_url":"https://api.github.com/repos/andrewowen/mtgCounter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andrewowen/mtgCounter/downloads","issues_url":"https://api.github.com/repos/andrewowen/mtgCounter/issues{/number}","pulls_url":"https://api.github.com/repos/andrewowen/mtgCounter/pulls{/number}","milestones_url":"https://api.github.com/repos/andrewowen/mtgCounter/milestones{/number}","notifications_url":"https://api.github.com/repos/andrewowen/mtgCounter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andrewowen/mtgCounter/labels{/name}","releases_url":"https://api.github.com/repos/andrewowen/mtgCounter/releases{/id}","deployments_url":"https://api.github.com/repos/andrewowen/mtgCounter/deployments","created_at":"2018-07-31T20:44:08Z","updated_at":"2018-08-15T17:23:10Z","pushed_at":"2018-08-16T13:57:29Z","git_url":"git://github.com/andrewowen/mtgCounter.git","ssh_url":"git@github.com:andrewowen/mtgCounter.git","clone_url":"https://github.com/andrewowen/mtgCounter.git","svn_url":"https://github.com/andrewowen/mtgCounter","homepage":null,"size":1086,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/andrewowen/mtgCounter/pulls/4"},"html":{"href":"https://github.com/andrewowen/mtgCounter/pull/4"},"issue":{"href":"https://api.github.com/repos/andrewowen/mtgCounter/issues/4"},"comments":{"href":"https://api.github.com/repos/andrewowen/mtgCounter/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/andrewowen/mtgCounter/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/andrewowen/mtgCounter/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andrewowen/mtgCounter/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/andrewowen/mtgCounter/statuses/24999e61d5a145053297443b4dcb50fbda11fa06"}},"author_association":"OWNER"}}
{"actor":{"display_login":"andrewowen"}}