{"action":"created","comment":{"url":"https://api.github.com/repos/tipsi/tipsi-twitter/pulls/comments/92436342","pull_request_review_id":12951510,"id":92436342,"diff_hunk":"@@ -0,0 +1,91 @@\n+/**\n+ * Sample React Native App\n+ * https://github.com/facebook/react-native\n+ * @flow\n+ */\n+\n+import React, { Component } from 'react';\n+import {\n+  AppRegistry,\n+  StyleSheet,\n+  Text,\n+  View\n+} from 'react-native';\n+import { TwitterLoginButton } from 'react-native-twitter-sdk'\n+\n+export default class example extends Component {\n+\n+  state = {\n+    twitter_access_token: '',\n+    twitter_token_secret: '',\n+    twitter_userId: '',\n+    error_message: '',\n+  }\n+\n+  onTwitterLoginFinished = (error, result) => {\n+    console.log('onTwitterLoginFinished in REACT')\n+    if (error) {\n+      alert(\"login has error: \" + error);\n+         this.setState({\n+           error_message: result.error,\n+         })\n+    } else if (result.isCancelled) {\n+      alert(\"login is cancelled.\");\n+    } else {\n+    console.log(result)\n+          this.setState({\n+            twitter_access_token: result.authToken.token,\n+            twitter_token_secret: result.authToken.secret,\n+            twitter_userId: result.userId,\n+          })\n+    }\n+  }\n+\n+  render() {\n+\n+  const { twitter_access_token, twitter_token_secret, twitter_userId, error_message } = this.state\n+\n+    return (\n+      <View style={styles.container}>\n+      <TwitterLoginButton\n+           accessible\n+           accessibilityLabel={'loginButton'}\n+           onLoginFinished={this.onTwitterLoginFinished}\n+           onLogoutFinished={() => alert(\"logout.\")}/>\n+        <Text\n+           accessibilityLabel=\"twitter_response\"\n+           style={styles.instructions}>\n+          { twitter_access_token != '' ? 'twitter_access_token: ' + twitter_access_token : ''} {'\\n'}","path":"example/index.android.js","position":58,"original_position":58,"commit_id":"8fd5d8cb9ba82849c7f2f5de3655c7095d625ef1","original_commit_id":"8fd5d8cb9ba82849c7f2f5de3655c7095d625ef1","user":{"login":"isnifer","id":1788245,"avatar_url":"https://avatars.githubusercontent.com/u/1788245?v=3","gravatar_id":"","url":"https://api.github.com/users/isnifer","html_url":"https://github.com/isnifer","followers_url":"https://api.github.com/users/isnifer/followers","following_url":"https://api.github.com/users/isnifer/following{/other_user}","gists_url":"https://api.github.com/users/isnifer/gists{/gist_id}","starred_url":"https://api.github.com/users/isnifer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isnifer/subscriptions","organizations_url":"https://api.github.com/users/isnifer/orgs","repos_url":"https://api.github.com/users/isnifer/repos","events_url":"https://api.github.com/users/isnifer/events{/privacy}","received_events_url":"https://api.github.com/users/isnifer/received_events","type":"User","site_admin":false},"body":"First of all:\r\n1. `twitter_access_token` => `twitterAccessToken`\r\n2. `!=` => `!==`\r\n3. \r\n```js\r\n'twitter_access_token: ' + twitter_access_token\r\n``` \r\n=> \r\n```js \r\n`twitter_access_token: ${twitter_access_token}`\r\n```","created_at":"2016-12-14T16:47:49Z","updated_at":"2016-12-14T16:47:49Z","html_url":"https://github.com/tipsi/tipsi-twitter/pull/1#discussion_r92436342","pull_request_url":"https://api.github.com/repos/tipsi/tipsi-twitter/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/tipsi/tipsi-twitter/pulls/comments/92436342"},"html":{"href":"https://github.com/tipsi/tipsi-twitter/pull/1#discussion_r92436342"},"pull_request":{"href":"https://api.github.com/repos/tipsi/tipsi-twitter/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/tipsi/tipsi-twitter/pulls/1","id":97833936,"html_url":"https://github.com/tipsi/tipsi-twitter/pull/1","diff_url":"https://github.com/tipsi/tipsi-twitter/pull/1.diff","patch_url":"https://github.com/tipsi/tipsi-twitter/pull/1.patch","issue_url":"https://api.github.com/repos/tipsi/tipsi-twitter/issues/1","number":1,"state":"open","locked":false,"title":"Android implementation","user":{"login":"fAns1k","id":4946753,"avatar_url":"https://avatars.githubusercontent.com/u/4946753?v=3","gravatar_id":"","url":"https://api.github.com/users/fAns1k","html_url":"https://github.com/fAns1k","followers_url":"https://api.github.com/users/fAns1k/followers","following_url":"https://api.github.com/users/fAns1k/following{/other_user}","gists_url":"https://api.github.com/users/fAns1k/gists{/gist_id}","starred_url":"https://api.github.com/users/fAns1k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fAns1k/subscriptions","organizations_url":"https://api.github.com/users/fAns1k/orgs","repos_url":"https://api.github.com/users/fAns1k/repos","events_url":"https://api.github.com/users/fAns1k/events{/privacy}","received_events_url":"https://api.github.com/users/fAns1k/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-12-13T20:57:28Z","updated_at":"2016-12-14T16:47:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"38014c9cfcb2f0c6daae9c134f700ecb0b2aa9f1","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/tipsi/tipsi-twitter/pulls/1/commits","review_comments_url":"https://api.github.com/repos/tipsi/tipsi-twitter/pulls/1/comments","review_comment_url":"https://api.github.com/repos/tipsi/tipsi-twitter/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tipsi/tipsi-twitter/issues/1/comments","statuses_url":"https://api.github.com/repos/tipsi/tipsi-twitter/statuses/8fd5d8cb9ba82849c7f2f5de3655c7095d625ef1","head":{"label":"tipsi:android_dev","ref":"android_dev","sha":"8fd5d8cb9ba82849c7f2f5de3655c7095d625ef1","user":{"login":"tipsi","id":16418909,"avatar_url":"https://avatars.githubusercontent.com/u/16418909?v=3","gravatar_id":"","url":"https://api.github.com/users/tipsi","html_url":"https://github.com/tipsi","followers_url":"https://api.github.com/users/tipsi/followers","following_url":"https://api.github.com/users/tipsi/following{/other_user}","gists_url":"https://api.github.com/users/tipsi/gists{/gist_id}","starred_url":"https://api.github.com/users/tipsi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tipsi/subscriptions","organizations_url":"https://api.github.com/users/tipsi/orgs","repos_url":"https://api.github.com/users/tipsi/repos","events_url":"https://api.github.com/users/tipsi/events{/privacy}","received_events_url":"https://api.github.com/users/tipsi/received_events","type":"Organization","site_admin":false},"repo":{"id":76055401,"name":"tipsi-twitter","full_name":"tipsi/tipsi-twitter","owner":{"login":"tipsi","id":16418909,"avatar_url":"https://avatars.githubusercontent.com/u/16418909?v=3","gravatar_id":"","url":"https://api.github.com/users/tipsi","html_url":"https://github.com/tipsi","followers_url":"https://api.github.com/users/tipsi/followers","following_url":"https://api.github.com/users/tipsi/following{/other_user}","gists_url":"https://api.github.com/users/tipsi/gists{/gist_id}","starred_url":"https://api.github.com/users/tipsi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tipsi/subscriptions","organizations_url":"https://api.github.com/users/tipsi/orgs","repos_url":"https://api.github.com/users/tipsi/repos","events_url":"https://api.github.com/users/tipsi/events{/privacy}","received_events_url":"https://api.github.com/users/tipsi/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tipsi/tipsi-twitter","description":"React native module for twitter API","fork":false,"url":"https://api.github.com/repos/tipsi/tipsi-twitter","forks_url":"https://api.github.com/repos/tipsi/tipsi-twitter/forks","keys_url":"https://api.github.com/repos/tipsi/tipsi-twitter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tipsi/tipsi-twitter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tipsi/tipsi-twitter/teams","hooks_url":"https://api.github.com/repos/tipsi/tipsi-twitter/hooks","issue_events_url":"https://api.github.com/repos/tipsi/tipsi-twitter/issues/events{/number}","events_url":"https://api.github.com/repos/tipsi/tipsi-twitter/events","assignees_url":"https://api.github.com/repos/tipsi/tipsi-twitter/assignees{/user}","branches_url":"https://api.github.com/repos/tipsi/tipsi-twitter/branches{/branch}","tags_url":"https://api.github.com/repos/tipsi/tipsi-twitter/tags","blobs_url":"https://api.github.com/repos/tipsi/tipsi-twitter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tipsi/tipsi-twitter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tipsi/tipsi-twitter/git/refs{/sha}","trees_url":"https://api.github.com/repos/tipsi/tipsi-twitter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tipsi/tipsi-twitter/statuses/{sha}","languages_url":"https://api.github.com/repos/tipsi/tipsi-twitter/languages","stargazers_url":"https://api.github.com/repos/tipsi/tipsi-twitter/stargazers","contributors_url":"https://api.github.com/repos/tipsi/tipsi-twitter/contributors","subscribers_url":"https://api.github.com/repos/tipsi/tipsi-twitter/subscribers","subscription_url":"https://api.github.com/repos/tipsi/tipsi-twitter/subscription","commits_url":"https://api.github.com/repos/tipsi/tipsi-twitter/commits{/sha}","git_commits_url":"https://api.github.com/repos/tipsi/tipsi-twitter/git/commits{/sha}","comments_url":"https://api.github.com/repos/tipsi/tipsi-twitter/comments{/number}","issue_comment_url":"https://api.github.com/repos/tipsi/tipsi-twitter/issues/comments{/number}","contents_url":"https://api.github.com/repos/tipsi/tipsi-twitter/contents/{+path}","compare_url":"https://api.github.com/repos/tipsi/tipsi-twitter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tipsi/tipsi-twitter/merges","archive_url":"https://api.github.com/repos/tipsi/tipsi-twitter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tipsi/tipsi-twitter/downloads","issues_url":"https://api.github.com/repos/tipsi/tipsi-twitter/issues{/number}","pulls_url":"https://api.github.com/repos/tipsi/tipsi-twitter/pulls{/number}","milestones_url":"https://api.github.com/repos/tipsi/tipsi-twitter/milestones{/number}","notifications_url":"https://api.github.com/repos/tipsi/tipsi-twitter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tipsi/tipsi-twitter/labels{/name}","releases_url":"https://api.github.com/repos/tipsi/tipsi-twitter/releases{/id}","deployments_url":"https://api.github.com/repos/tipsi/tipsi-twitter/deployments","created_at":"2016-12-09T17:18:31Z","updated_at":"2016-12-13T19:12:56Z","pushed_at":"2016-12-14T14:30:24Z","git_url":"git://github.com/tipsi/tipsi-twitter.git","ssh_url":"git@github.com:tipsi/tipsi-twitter.git","clone_url":"https://github.com/tipsi/tipsi-twitter.git","svn_url":"https://github.com/tipsi/tipsi-twitter","homepage":null,"size":165,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"tipsi:master","ref":"master","sha":"de7bb0057d59799e0f23aee1bda330b4a6debb22","user":{"login":"tipsi","id":16418909,"avatar_url":"https://avatars.githubusercontent.com/u/16418909?v=3","gravatar_id":"","url":"https://api.github.com/users/tipsi","html_url":"https://github.com/tipsi","followers_url":"https://api.github.com/users/tipsi/followers","following_url":"https://api.github.com/users/tipsi/following{/other_user}","gists_url":"https://api.github.com/users/tipsi/gists{/gist_id}","starred_url":"https://api.github.com/users/tipsi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tipsi/subscriptions","organizations_url":"https://api.github.com/users/tipsi/orgs","repos_url":"https://api.github.com/users/tipsi/repos","events_url":"https://api.github.com/users/tipsi/events{/privacy}","received_events_url":"https://api.github.com/users/tipsi/received_events","type":"Organization","site_admin":false},"repo":{"id":76055401,"name":"tipsi-twitter","full_name":"tipsi/tipsi-twitter","owner":{"login":"tipsi","id":16418909,"avatar_url":"https://avatars.githubusercontent.com/u/16418909?v=3","gravatar_id":"","url":"https://api.github.com/users/tipsi","html_url":"https://github.com/tipsi","followers_url":"https://api.github.com/users/tipsi/followers","following_url":"https://api.github.com/users/tipsi/following{/other_user}","gists_url":"https://api.github.com/users/tipsi/gists{/gist_id}","starred_url":"https://api.github.com/users/tipsi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tipsi/subscriptions","organizations_url":"https://api.github.com/users/tipsi/orgs","repos_url":"https://api.github.com/users/tipsi/repos","events_url":"https://api.github.com/users/tipsi/events{/privacy}","received_events_url":"https://api.github.com/users/tipsi/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tipsi/tipsi-twitter","description":"React native module for twitter API","fork":false,"url":"https://api.github.com/repos/tipsi/tipsi-twitter","forks_url":"https://api.github.com/repos/tipsi/tipsi-twitter/forks","keys_url":"https://api.github.com/repos/tipsi/tipsi-twitter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tipsi/tipsi-twitter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tipsi/tipsi-twitter/teams","hooks_url":"https://api.github.com/repos/tipsi/tipsi-twitter/hooks","issue_events_url":"https://api.github.com/repos/tipsi/tipsi-twitter/issues/events{/number}","events_url":"https://api.github.com/repos/tipsi/tipsi-twitter/events","assignees_url":"https://api.github.com/repos/tipsi/tipsi-twitter/assignees{/user}","branches_url":"https://api.github.com/repos/tipsi/tipsi-twitter/branches{/branch}","tags_url":"https://api.github.com/repos/tipsi/tipsi-twitter/tags","blobs_url":"https://api.github.com/repos/tipsi/tipsi-twitter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tipsi/tipsi-twitter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tipsi/tipsi-twitter/git/refs{/sha}","trees_url":"https://api.github.com/repos/tipsi/tipsi-twitter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tipsi/tipsi-twitter/statuses/{sha}","languages_url":"https://api.github.com/repos/tipsi/tipsi-twitter/languages","stargazers_url":"https://api.github.com/repos/tipsi/tipsi-twitter/stargazers","contributors_url":"https://api.github.com/repos/tipsi/tipsi-twitter/contributors","subscribers_url":"https://api.github.com/repos/tipsi/tipsi-twitter/subscribers","subscription_url":"https://api.github.com/repos/tipsi/tipsi-twitter/subscription","commits_url":"https://api.github.com/repos/tipsi/tipsi-twitter/commits{/sha}","git_commits_url":"https://api.github.com/repos/tipsi/tipsi-twitter/git/commits{/sha}","comments_url":"https://api.github.com/repos/tipsi/tipsi-twitter/comments{/number}","issue_comment_url":"https://api.github.com/repos/tipsi/tipsi-twitter/issues/comments{/number}","contents_url":"https://api.github.com/repos/tipsi/tipsi-twitter/contents/{+path}","compare_url":"https://api.github.com/repos/tipsi/tipsi-twitter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tipsi/tipsi-twitter/merges","archive_url":"https://api.github.com/repos/tipsi/tipsi-twitter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tipsi/tipsi-twitter/downloads","issues_url":"https://api.github.com/repos/tipsi/tipsi-twitter/issues{/number}","pulls_url":"https://api.github.com/repos/tipsi/tipsi-twitter/pulls{/number}","milestones_url":"https://api.github.com/repos/tipsi/tipsi-twitter/milestones{/number}","notifications_url":"https://api.github.com/repos/tipsi/tipsi-twitter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tipsi/tipsi-twitter/labels{/name}","releases_url":"https://api.github.com/repos/tipsi/tipsi-twitter/releases{/id}","deployments_url":"https://api.github.com/repos/tipsi/tipsi-twitter/deployments","created_at":"2016-12-09T17:18:31Z","updated_at":"2016-12-13T19:12:56Z","pushed_at":"2016-12-14T14:30:24Z","git_url":"git://github.com/tipsi/tipsi-twitter.git","ssh_url":"git@github.com:tipsi/tipsi-twitter.git","clone_url":"https://github.com/tipsi/tipsi-twitter.git","svn_url":"https://github.com/tipsi/tipsi-twitter","homepage":null,"size":165,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tipsi/tipsi-twitter/pulls/1"},"html":{"href":"https://github.com/tipsi/tipsi-twitter/pull/1"},"issue":{"href":"https://api.github.com/repos/tipsi/tipsi-twitter/issues/1"},"comments":{"href":"https://api.github.com/repos/tipsi/tipsi-twitter/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/tipsi/tipsi-twitter/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/tipsi/tipsi-twitter/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tipsi/tipsi-twitter/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/tipsi/tipsi-twitter/statuses/8fd5d8cb9ba82849c7f2f5de3655c7095d625ef1"}}}}
{"actor":{"display_login":"isnifer"}}