{"action":"created","comment":{"url":"https://api.github.com/repos/yfuks/react-native-action-sheet/pulls/comments/89196917","pull_request_review_id":9744567,"id":89196917,"diff_hunk":"@@ -60,7 +67,11 @@ public void showActionSheetWithOptions(final ReadableMap options, final Callback\n \n     builder.setAdapter(adapter, new DialogInterface.OnClickListener() {\n       public void onClick(DialogInterface dialog, int index) {\n-        callback.invoke(index);\n+        if (index < cancelIndex) {","path":"android/src/main/java/com/actionsheet/ActionSheetModule.java","position":25,"original_position":25,"commit_id":"f3d830430e6136c66ddb63463a1ab5fbfb24f3c8","original_commit_id":"f3d830430e6136c66ddb63463a1ab5fbfb24f3c8","user":{"login":"yfuks","id":9282988,"avatar_url":"https://avatars.githubusercontent.com/u/9282988?v=3","gravatar_id":"","url":"https://api.github.com/users/yfuks","html_url":"https://github.com/yfuks","followers_url":"https://api.github.com/users/yfuks/followers","following_url":"https://api.github.com/users/yfuks/following{/other_user}","gists_url":"https://api.github.com/users/yfuks/gists{/gist_id}","starred_url":"https://api.github.com/users/yfuks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yfuks/subscriptions","organizations_url":"https://api.github.com/users/yfuks/orgs","repos_url":"https://api.github.com/users/yfuks/repos","events_url":"https://api.github.com/users/yfuks/events{/privacy}","received_events_url":"https://api.github.com/users/yfuks/received_events","type":"User","site_admin":false},"body":"And if ```cancelIndex = 1``` and ```index = 2``` ?","created_at":"2016-11-22T19:52:22Z","updated_at":"2016-11-22T19:52:22Z","html_url":"https://github.com/yfuks/react-native-action-sheet/pull/2#discussion_r89196917","pull_request_url":"https://api.github.com/repos/yfuks/react-native-action-sheet/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/yfuks/react-native-action-sheet/pulls/comments/89196917"},"html":{"href":"https://github.com/yfuks/react-native-action-sheet/pull/2#discussion_r89196917"},"pull_request":{"href":"https://api.github.com/repos/yfuks/react-native-action-sheet/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/yfuks/react-native-action-sheet/pulls/2","id":94824032,"html_url":"https://github.com/yfuks/react-native-action-sheet/pull/2","diff_url":"https://github.com/yfuks/react-native-action-sheet/pull/2.diff","patch_url":"https://github.com/yfuks/react-native-action-sheet/pull/2.patch","issue_url":"https://api.github.com/repos/yfuks/react-native-action-sheet/issues/2","number":2,"state":"open","locked":false,"title":"Keep js invoke code same with iOS.","user":{"login":"anysome","id":233960,"avatar_url":"https://avatars.githubusercontent.com/u/233960?v=3","gravatar_id":"","url":"https://api.github.com/users/anysome","html_url":"https://github.com/anysome","followers_url":"https://api.github.com/users/anysome/followers","following_url":"https://api.github.com/users/anysome/following{/other_user}","gists_url":"https://api.github.com/users/anysome/gists{/gist_id}","starred_url":"https://api.github.com/users/anysome/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anysome/subscriptions","organizations_url":"https://api.github.com/users/anysome/orgs","repos_url":"https://api.github.com/users/anysome/repos","events_url":"https://api.github.com/users/anysome/events{/privacy}","received_events_url":"https://api.github.com/users/anysome/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-22T14:27:31Z","updated_at":"2016-11-22T19:52:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e823cec30a9e2850fceaa10530c6f05f68fb4bba","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/yfuks/react-native-action-sheet/pulls/2/commits","review_comments_url":"https://api.github.com/repos/yfuks/react-native-action-sheet/pulls/2/comments","review_comment_url":"https://api.github.com/repos/yfuks/react-native-action-sheet/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yfuks/react-native-action-sheet/issues/2/comments","statuses_url":"https://api.github.com/repos/yfuks/react-native-action-sheet/statuses/f3d830430e6136c66ddb63463a1ab5fbfb24f3c8","head":{"label":"anysome:master","ref":"master","sha":"f3d830430e6136c66ddb63463a1ab5fbfb24f3c8","user":{"login":"anysome","id":233960,"avatar_url":"https://avatars.githubusercontent.com/u/233960?v=3","gravatar_id":"","url":"https://api.github.com/users/anysome","html_url":"https://github.com/anysome","followers_url":"https://api.github.com/users/anysome/followers","following_url":"https://api.github.com/users/anysome/following{/other_user}","gists_url":"https://api.github.com/users/anysome/gists{/gist_id}","starred_url":"https://api.github.com/users/anysome/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anysome/subscriptions","organizations_url":"https://api.github.com/users/anysome/orgs","repos_url":"https://api.github.com/users/anysome/repos","events_url":"https://api.github.com/users/anysome/events{/privacy}","received_events_url":"https://api.github.com/users/anysome/received_events","type":"User","site_admin":false},"repo":{"id":74430217,"name":"react-native-action-sheet","full_name":"anysome/react-native-action-sheet","owner":{"login":"anysome","id":233960,"avatar_url":"https://avatars.githubusercontent.com/u/233960?v=3","gravatar_id":"","url":"https://api.github.com/users/anysome","html_url":"https://github.com/anysome","followers_url":"https://api.github.com/users/anysome/followers","following_url":"https://api.github.com/users/anysome/following{/other_user}","gists_url":"https://api.github.com/users/anysome/gists{/gist_id}","starred_url":"https://api.github.com/users/anysome/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anysome/subscriptions","organizations_url":"https://api.github.com/users/anysome/orgs","repos_url":"https://api.github.com/users/anysome/repos","events_url":"https://api.github.com/users/anysome/events{/privacy}","received_events_url":"https://api.github.com/users/anysome/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/anysome/react-native-action-sheet","description":"React native action sheet with native android (using the built-in AlertDialog)","fork":true,"url":"https://api.github.com/repos/anysome/react-native-action-sheet","forks_url":"https://api.github.com/repos/anysome/react-native-action-sheet/forks","keys_url":"https://api.github.com/repos/anysome/react-native-action-sheet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/anysome/react-native-action-sheet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/anysome/react-native-action-sheet/teams","hooks_url":"https://api.github.com/repos/anysome/react-native-action-sheet/hooks","issue_events_url":"https://api.github.com/repos/anysome/react-native-action-sheet/issues/events{/number}","events_url":"https://api.github.com/repos/anysome/react-native-action-sheet/events","assignees_url":"https://api.github.com/repos/anysome/react-native-action-sheet/assignees{/user}","branches_url":"https://api.github.com/repos/anysome/react-native-action-sheet/branches{/branch}","tags_url":"https://api.github.com/repos/anysome/react-native-action-sheet/tags","blobs_url":"https://api.github.com/repos/anysome/react-native-action-sheet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/anysome/react-native-action-sheet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/anysome/react-native-action-sheet/git/refs{/sha}","trees_url":"https://api.github.com/repos/anysome/react-native-action-sheet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/anysome/react-native-action-sheet/statuses/{sha}","languages_url":"https://api.github.com/repos/anysome/react-native-action-sheet/languages","stargazers_url":"https://api.github.com/repos/anysome/react-native-action-sheet/stargazers","contributors_url":"https://api.github.com/repos/anysome/react-native-action-sheet/contributors","subscribers_url":"https://api.github.com/repos/anysome/react-native-action-sheet/subscribers","subscription_url":"https://api.github.com/repos/anysome/react-native-action-sheet/subscription","commits_url":"https://api.github.com/repos/anysome/react-native-action-sheet/commits{/sha}","git_commits_url":"https://api.github.com/repos/anysome/react-native-action-sheet/git/commits{/sha}","comments_url":"https://api.github.com/repos/anysome/react-native-action-sheet/comments{/number}","issue_comment_url":"https://api.github.com/repos/anysome/react-native-action-sheet/issues/comments{/number}","contents_url":"https://api.github.com/repos/anysome/react-native-action-sheet/contents/{+path}","compare_url":"https://api.github.com/repos/anysome/react-native-action-sheet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/anysome/react-native-action-sheet/merges","archive_url":"https://api.github.com/repos/anysome/react-native-action-sheet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/anysome/react-native-action-sheet/downloads","issues_url":"https://api.github.com/repos/anysome/react-native-action-sheet/issues{/number}","pulls_url":"https://api.github.com/repos/anysome/react-native-action-sheet/pulls{/number}","milestones_url":"https://api.github.com/repos/anysome/react-native-action-sheet/milestones{/number}","notifications_url":"https://api.github.com/repos/anysome/react-native-action-sheet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/anysome/react-native-action-sheet/labels{/name}","releases_url":"https://api.github.com/repos/anysome/react-native-action-sheet/releases{/id}","deployments_url":"https://api.github.com/repos/anysome/react-native-action-sheet/deployments","created_at":"2016-11-22T03:26:17Z","updated_at":"2016-11-22T03:26:19Z","pushed_at":"2016-11-22T14:22:04Z","git_url":"git://github.com/anysome/react-native-action-sheet.git","ssh_url":"git@github.com:anysome/react-native-action-sheet.git","clone_url":"https://github.com/anysome/react-native-action-sheet.git","svn_url":"https://github.com/anysome/react-native-action-sheet","homepage":"","size":99,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"yfuks:master","ref":"master","sha":"dcd642d2a7457ea680f544a6f4908a215111822f","user":{"login":"yfuks","id":9282988,"avatar_url":"https://avatars.githubusercontent.com/u/9282988?v=3","gravatar_id":"","url":"https://api.github.com/users/yfuks","html_url":"https://github.com/yfuks","followers_url":"https://api.github.com/users/yfuks/followers","following_url":"https://api.github.com/users/yfuks/following{/other_user}","gists_url":"https://api.github.com/users/yfuks/gists{/gist_id}","starred_url":"https://api.github.com/users/yfuks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yfuks/subscriptions","organizations_url":"https://api.github.com/users/yfuks/orgs","repos_url":"https://api.github.com/users/yfuks/repos","events_url":"https://api.github.com/users/yfuks/events{/privacy}","received_events_url":"https://api.github.com/users/yfuks/received_events","type":"User","site_admin":false},"repo":{"id":70921541,"name":"react-native-action-sheet","full_name":"yfuks/react-native-action-sheet","owner":{"login":"yfuks","id":9282988,"avatar_url":"https://avatars.githubusercontent.com/u/9282988?v=3","gravatar_id":"","url":"https://api.github.com/users/yfuks","html_url":"https://github.com/yfuks","followers_url":"https://api.github.com/users/yfuks/followers","following_url":"https://api.github.com/users/yfuks/following{/other_user}","gists_url":"https://api.github.com/users/yfuks/gists{/gist_id}","starred_url":"https://api.github.com/users/yfuks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yfuks/subscriptions","organizations_url":"https://api.github.com/users/yfuks/orgs","repos_url":"https://api.github.com/users/yfuks/repos","events_url":"https://api.github.com/users/yfuks/events{/privacy}","received_events_url":"https://api.github.com/users/yfuks/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yfuks/react-native-action-sheet","description":"React native action sheet with native android (using the built-in AlertDialog)","fork":false,"url":"https://api.github.com/repos/yfuks/react-native-action-sheet","forks_url":"https://api.github.com/repos/yfuks/react-native-action-sheet/forks","keys_url":"https://api.github.com/repos/yfuks/react-native-action-sheet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yfuks/react-native-action-sheet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yfuks/react-native-action-sheet/teams","hooks_url":"https://api.github.com/repos/yfuks/react-native-action-sheet/hooks","issue_events_url":"https://api.github.com/repos/yfuks/react-native-action-sheet/issues/events{/number}","events_url":"https://api.github.com/repos/yfuks/react-native-action-sheet/events","assignees_url":"https://api.github.com/repos/yfuks/react-native-action-sheet/assignees{/user}","branches_url":"https://api.github.com/repos/yfuks/react-native-action-sheet/branches{/branch}","tags_url":"https://api.github.com/repos/yfuks/react-native-action-sheet/tags","blobs_url":"https://api.github.com/repos/yfuks/react-native-action-sheet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yfuks/react-native-action-sheet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yfuks/react-native-action-sheet/git/refs{/sha}","trees_url":"https://api.github.com/repos/yfuks/react-native-action-sheet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yfuks/react-native-action-sheet/statuses/{sha}","languages_url":"https://api.github.com/repos/yfuks/react-native-action-sheet/languages","stargazers_url":"https://api.github.com/repos/yfuks/react-native-action-sheet/stargazers","contributors_url":"https://api.github.com/repos/yfuks/react-native-action-sheet/contributors","subscribers_url":"https://api.github.com/repos/yfuks/react-native-action-sheet/subscribers","subscription_url":"https://api.github.com/repos/yfuks/react-native-action-sheet/subscription","commits_url":"https://api.github.com/repos/yfuks/react-native-action-sheet/commits{/sha}","git_commits_url":"https://api.github.com/repos/yfuks/react-native-action-sheet/git/commits{/sha}","comments_url":"https://api.github.com/repos/yfuks/react-native-action-sheet/comments{/number}","issue_comment_url":"https://api.github.com/repos/yfuks/react-native-action-sheet/issues/comments{/number}","contents_url":"https://api.github.com/repos/yfuks/react-native-action-sheet/contents/{+path}","compare_url":"https://api.github.com/repos/yfuks/react-native-action-sheet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yfuks/react-native-action-sheet/merges","archive_url":"https://api.github.com/repos/yfuks/react-native-action-sheet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yfuks/react-native-action-sheet/downloads","issues_url":"https://api.github.com/repos/yfuks/react-native-action-sheet/issues{/number}","pulls_url":"https://api.github.com/repos/yfuks/react-native-action-sheet/pulls{/number}","milestones_url":"https://api.github.com/repos/yfuks/react-native-action-sheet/milestones{/number}","notifications_url":"https://api.github.com/repos/yfuks/react-native-action-sheet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yfuks/react-native-action-sheet/labels{/name}","releases_url":"https://api.github.com/repos/yfuks/react-native-action-sheet/releases{/id}","deployments_url":"https://api.github.com/repos/yfuks/react-native-action-sheet/deployments","created_at":"2016-10-14T15:12:21Z","updated_at":"2016-11-22T03:16:47Z","pushed_at":"2016-11-22T14:27:31Z","git_url":"git://github.com/yfuks/react-native-action-sheet.git","ssh_url":"git@github.com:yfuks/react-native-action-sheet.git","clone_url":"https://github.com/yfuks/react-native-action-sheet.git","svn_url":"https://github.com/yfuks/react-native-action-sheet","homepage":"","size":109,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/yfuks/react-native-action-sheet/pulls/2"},"html":{"href":"https://github.com/yfuks/react-native-action-sheet/pull/2"},"issue":{"href":"https://api.github.com/repos/yfuks/react-native-action-sheet/issues/2"},"comments":{"href":"https://api.github.com/repos/yfuks/react-native-action-sheet/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/yfuks/react-native-action-sheet/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/yfuks/react-native-action-sheet/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yfuks/react-native-action-sheet/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/yfuks/react-native-action-sheet/statuses/f3d830430e6136c66ddb63463a1ab5fbfb24f3c8"}}}}
{"actor":{"display_login":"yfuks"}}