{"action":"created","comment":{"url":"https://api.github.com/repos/react-native-training/react-native-elements/pulls/comments/170459967","pull_request_review_id":99149647,"id":170459967,"diff_hunk":"@@ -83,16 +83,17 @@ import { SearchBar } from 'react-native-elements'\n | placeholder | '' | string | set the placeholder text |\n | placeholderTextColor | '#86939e' | string | set the color of the placeholder text |\n | onChangeText | none | function | method to fire when text is changed |\n-| onClearText | none | function | method to fire when text is cleared |\n-| onCancel | null | function | callback fired when pressing the cancel button (iOS) or the back icon (Android)|\n+| onClear | none | function | method to fire when input is cleared |\n+|onCancel| null | function | callback fired when pressing the cancel button (iOS) or the back icon (Android)|\n | clearIcon | { color: '#86939e', name: 'close' } | object {name (string), color (string), style (object)} | specify color, styling, or another [Material Icon Name](https://design.google.com/icons/) (Note: pressing on this icon clears text inside the searchbar) |\n \n ##### Interaction methods\n | method | description |\n | ---- | ---- |\n | focus | call focus on the textinput ([example](#calling)) |\n | blur | call blur on the textinput ([example](#calling)) |\n-| clearText | call clear on the textinput ([example](#calling))|\n+| clear | call clear on the textinput ([example](#calling))|\n+| cancel | **(Android and iOS SearchBars only)** call cancel on the SearchBar (left arrow on Android, Cancel button on iOS) ([example](#calling))|","path":"docs/searchbar.md","position":54,"original_position":54,"commit_id":"8e92a36713735e21fd626f8561b108696aaf6bf0","original_commit_id":"8e92a36713735e21fd626f8561b108696aaf6bf0","user":{"login":"iRoachie","id":5962998,"avatar_url":"https://avatars2.githubusercontent.com/u/5962998?v=4","gravatar_id":"","url":"https://api.github.com/users/iRoachie","html_url":"https://github.com/iRoachie","followers_url":"https://api.github.com/users/iRoachie/followers","following_url":"https://api.github.com/users/iRoachie/following{/other_user}","gists_url":"https://api.github.com/users/iRoachie/gists{/gist_id}","starred_url":"https://api.github.com/users/iRoachie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iRoachie/subscriptions","organizations_url":"https://api.github.com/users/iRoachie/orgs","repos_url":"https://api.github.com/users/iRoachie/repos","events_url":"https://api.github.com/users/iRoachie/events{/privacy}","received_events_url":"https://api.github.com/users/iRoachie/received_events","type":"User","site_admin":false},"body":"Should maybe explain what cancelling does *e.g removes focus, hides keyboard*","created_at":"2018-02-25T17:29:06Z","updated_at":"2018-02-25T17:30:28Z","html_url":"https://github.com/react-native-training/react-native-elements/pull/916#discussion_r170459967","pull_request_url":"https://api.github.com/repos/react-native-training/react-native-elements/pulls/916","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/react-native-training/react-native-elements/pulls/comments/170459967"},"html":{"href":"https://github.com/react-native-training/react-native-elements/pull/916#discussion_r170459967"},"pull_request":{"href":"https://api.github.com/repos/react-native-training/react-native-elements/pulls/916"}}},"pull_request":{"url":"https://api.github.com/repos/react-native-training/react-native-elements/pulls/916","id":169783553,"html_url":"https://github.com/react-native-training/react-native-elements/pull/916","diff_url":"https://github.com/react-native-training/react-native-elements/pull/916.diff","patch_url":"https://github.com/react-native-training/react-native-elements/pull/916.patch","issue_url":"https://api.github.com/repos/react-native-training/react-native-elements/issues/916","number":916,"state":"open","locked":false,"title":"Fix searchbar methods next","user":{"login":"xavier-villelegier","id":17592779,"avatar_url":"https://avatars1.githubusercontent.com/u/17592779?v=4","gravatar_id":"","url":"https://api.github.com/users/xavier-villelegier","html_url":"https://github.com/xavier-villelegier","followers_url":"https://api.github.com/users/xavier-villelegier/followers","following_url":"https://api.github.com/users/xavier-villelegier/following{/other_user}","gists_url":"https://api.github.com/users/xavier-villelegier/gists{/gist_id}","starred_url":"https://api.github.com/users/xavier-villelegier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xavier-villelegier/subscriptions","organizations_url":"https://api.github.com/users/xavier-villelegier/orgs","repos_url":"https://api.github.com/users/xavier-villelegier/repos","events_url":"https://api.github.com/users/xavier-villelegier/events{/privacy}","received_events_url":"https://api.github.com/users/xavier-villelegier/received_events","type":"User","site_admin":false},"body":"## Breaking changes in SearchBar\r\n\r\n- `clearText()` now becomes `clear()` to be consistent with React Native `TextInput`\r\n- `onClearText` now becomes `onClear`","created_at":"2018-02-17T13:34:27Z","updated_at":"2018-02-25T17:30:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"726d4a7743db2739f119c2b32b1fa92612d6175c","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":587061061,"url":"https://api.github.com/repos/react-native-training/react-native-elements/labels/Bug%20Fix","name":"Bug Fix","color":"b60205","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/react-native-training/react-native-elements/pulls/916/commits","review_comments_url":"https://api.github.com/repos/react-native-training/react-native-elements/pulls/916/comments","review_comment_url":"https://api.github.com/repos/react-native-training/react-native-elements/pulls/comments{/number}","comments_url":"https://api.github.com/repos/react-native-training/react-native-elements/issues/916/comments","statuses_url":"https://api.github.com/repos/react-native-training/react-native-elements/statuses/8e92a36713735e21fd626f8561b108696aaf6bf0","head":{"label":"react-native-training:fix-searchbar-methods-next","ref":"fix-searchbar-methods-next","sha":"8e92a36713735e21fd626f8561b108696aaf6bf0","user":{"login":"react-native-training","id":23240955,"avatar_url":"https://avatars3.githubusercontent.com/u/23240955?v=4","gravatar_id":"","url":"https://api.github.com/users/react-native-training","html_url":"https://github.com/react-native-training","followers_url":"https://api.github.com/users/react-native-training/followers","following_url":"https://api.github.com/users/react-native-training/following{/other_user}","gists_url":"https://api.github.com/users/react-native-training/gists{/gist_id}","starred_url":"https://api.github.com/users/react-native-training/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/react-native-training/subscriptions","organizations_url":"https://api.github.com/users/react-native-training/orgs","repos_url":"https://api.github.com/users/react-native-training/repos","events_url":"https://api.github.com/users/react-native-training/events{/privacy}","received_events_url":"https://api.github.com/users/react-native-training/received_events","type":"Organization","site_admin":false},"repo":{"id":67709808,"name":"react-native-elements","full_name":"react-native-training/react-native-elements","owner":{"login":"react-native-training","id":23240955,"avatar_url":"https://avatars3.githubusercontent.com/u/23240955?v=4","gravatar_id":"","url":"https://api.github.com/users/react-native-training","html_url":"https://github.com/react-native-training","followers_url":"https://api.github.com/users/react-native-training/followers","following_url":"https://api.github.com/users/react-native-training/following{/other_user}","gists_url":"https://api.github.com/users/react-native-training/gists{/gist_id}","starred_url":"https://api.github.com/users/react-native-training/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/react-native-training/subscriptions","organizations_url":"https://api.github.com/users/react-native-training/orgs","repos_url":"https://api.github.com/users/react-native-training/repos","events_url":"https://api.github.com/users/react-native-training/events{/privacy}","received_events_url":"https://api.github.com/users/react-native-training/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/react-native-training/react-native-elements","description":"Cross Platform React Native UI Toolkit","fork":false,"url":"https://api.github.com/repos/react-native-training/react-native-elements","forks_url":"https://api.github.com/repos/react-native-training/react-native-elements/forks","keys_url":"https://api.github.com/repos/react-native-training/react-native-elements/keys{/key_id}","collaborators_url":"https://api.github.com/repos/react-native-training/react-native-elements/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/react-native-training/react-native-elements/teams","hooks_url":"https://api.github.com/repos/react-native-training/react-native-elements/hooks","issue_events_url":"https://api.github.com/repos/react-native-training/react-native-elements/issues/events{/number}","events_url":"https://api.github.com/repos/react-native-training/react-native-elements/events","assignees_url":"https://api.github.com/repos/react-native-training/react-native-elements/assignees{/user}","branches_url":"https://api.github.com/repos/react-native-training/react-native-elements/branches{/branch}","tags_url":"https://api.github.com/repos/react-native-training/react-native-elements/tags","blobs_url":"https://api.github.com/repos/react-native-training/react-native-elements/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/react-native-training/react-native-elements/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/react-native-training/react-native-elements/git/refs{/sha}","trees_url":"https://api.github.com/repos/react-native-training/react-native-elements/git/trees{/sha}","statuses_url":"https://api.github.com/repos/react-native-training/react-native-elements/statuses/{sha}","languages_url":"https://api.github.com/repos/react-native-training/react-native-elements/languages","stargazers_url":"https://api.github.com/repos/react-native-training/react-native-elements/stargazers","contributors_url":"https://api.github.com/repos/react-native-training/react-native-elements/contributors","subscribers_url":"https://api.github.com/repos/react-native-training/react-native-elements/subscribers","subscription_url":"https://api.github.com/repos/react-native-training/react-native-elements/subscription","commits_url":"https://api.github.com/repos/react-native-training/react-native-elements/commits{/sha}","git_commits_url":"https://api.github.com/repos/react-native-training/react-native-elements/git/commits{/sha}","comments_url":"https://api.github.com/repos/react-native-training/react-native-elements/comments{/number}","issue_comment_url":"https://api.github.com/repos/react-native-training/react-native-elements/issues/comments{/number}","contents_url":"https://api.github.com/repos/react-native-training/react-native-elements/contents/{+path}","compare_url":"https://api.github.com/repos/react-native-training/react-native-elements/compare/{base}...{head}","merges_url":"https://api.github.com/repos/react-native-training/react-native-elements/merges","archive_url":"https://api.github.com/repos/react-native-training/react-native-elements/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/react-native-training/react-native-elements/downloads","issues_url":"https://api.github.com/repos/react-native-training/react-native-elements/issues{/number}","pulls_url":"https://api.github.com/repos/react-native-training/react-native-elements/pulls{/number}","milestones_url":"https://api.github.com/repos/react-native-training/react-native-elements/milestones{/number}","notifications_url":"https://api.github.com/repos/react-native-training/react-native-elements/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/react-native-training/react-native-elements/labels{/name}","releases_url":"https://api.github.com/repos/react-native-training/react-native-elements/releases{/id}","deployments_url":"https://api.github.com/repos/react-native-training/react-native-elements/deployments","created_at":"2016-09-08T14:21:41Z","updated_at":"2018-02-25T17:10:15Z","pushed_at":"2018-02-25T17:20:13Z","git_url":"git://github.com/react-native-training/react-native-elements.git","ssh_url":"git@github.com:react-native-training/react-native-elements.git","clone_url":"https://github.com/react-native-training/react-native-elements.git","svn_url":"https://github.com/react-native-training/react-native-elements","homepage":"https://react-native-training.github.io/react-native-elements/","size":15832,"stargazers_count":9529,"watchers_count":9529,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1047,"mirror_url":null,"archived":false,"open_issues_count":43,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":1047,"open_issues":43,"watchers":9529,"default_branch":"master"}},"base":{"label":"react-native-training:next","ref":"next","sha":"f34d9409a0e88a7e6666c17d1e235cc888c16919","user":{"login":"react-native-training","id":23240955,"avatar_url":"https://avatars3.githubusercontent.com/u/23240955?v=4","gravatar_id":"","url":"https://api.github.com/users/react-native-training","html_url":"https://github.com/react-native-training","followers_url":"https://api.github.com/users/react-native-training/followers","following_url":"https://api.github.com/users/react-native-training/following{/other_user}","gists_url":"https://api.github.com/users/react-native-training/gists{/gist_id}","starred_url":"https://api.github.com/users/react-native-training/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/react-native-training/subscriptions","organizations_url":"https://api.github.com/users/react-native-training/orgs","repos_url":"https://api.github.com/users/react-native-training/repos","events_url":"https://api.github.com/users/react-native-training/events{/privacy}","received_events_url":"https://api.github.com/users/react-native-training/received_events","type":"Organization","site_admin":false},"repo":{"id":67709808,"name":"react-native-elements","full_name":"react-native-training/react-native-elements","owner":{"login":"react-native-training","id":23240955,"avatar_url":"https://avatars3.githubusercontent.com/u/23240955?v=4","gravatar_id":"","url":"https://api.github.com/users/react-native-training","html_url":"https://github.com/react-native-training","followers_url":"https://api.github.com/users/react-native-training/followers","following_url":"https://api.github.com/users/react-native-training/following{/other_user}","gists_url":"https://api.github.com/users/react-native-training/gists{/gist_id}","starred_url":"https://api.github.com/users/react-native-training/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/react-native-training/subscriptions","organizations_url":"https://api.github.com/users/react-native-training/orgs","repos_url":"https://api.github.com/users/react-native-training/repos","events_url":"https://api.github.com/users/react-native-training/events{/privacy}","received_events_url":"https://api.github.com/users/react-native-training/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/react-native-training/react-native-elements","description":"Cross Platform React Native UI Toolkit","fork":false,"url":"https://api.github.com/repos/react-native-training/react-native-elements","forks_url":"https://api.github.com/repos/react-native-training/react-native-elements/forks","keys_url":"https://api.github.com/repos/react-native-training/react-native-elements/keys{/key_id}","collaborators_url":"https://api.github.com/repos/react-native-training/react-native-elements/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/react-native-training/react-native-elements/teams","hooks_url":"https://api.github.com/repos/react-native-training/react-native-elements/hooks","issue_events_url":"https://api.github.com/repos/react-native-training/react-native-elements/issues/events{/number}","events_url":"https://api.github.com/repos/react-native-training/react-native-elements/events","assignees_url":"https://api.github.com/repos/react-native-training/react-native-elements/assignees{/user}","branches_url":"https://api.github.com/repos/react-native-training/react-native-elements/branches{/branch}","tags_url":"https://api.github.com/repos/react-native-training/react-native-elements/tags","blobs_url":"https://api.github.com/repos/react-native-training/react-native-elements/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/react-native-training/react-native-elements/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/react-native-training/react-native-elements/git/refs{/sha}","trees_url":"https://api.github.com/repos/react-native-training/react-native-elements/git/trees{/sha}","statuses_url":"https://api.github.com/repos/react-native-training/react-native-elements/statuses/{sha}","languages_url":"https://api.github.com/repos/react-native-training/react-native-elements/languages","stargazers_url":"https://api.github.com/repos/react-native-training/react-native-elements/stargazers","contributors_url":"https://api.github.com/repos/react-native-training/react-native-elements/contributors","subscribers_url":"https://api.github.com/repos/react-native-training/react-native-elements/subscribers","subscription_url":"https://api.github.com/repos/react-native-training/react-native-elements/subscription","commits_url":"https://api.github.com/repos/react-native-training/react-native-elements/commits{/sha}","git_commits_url":"https://api.github.com/repos/react-native-training/react-native-elements/git/commits{/sha}","comments_url":"https://api.github.com/repos/react-native-training/react-native-elements/comments{/number}","issue_comment_url":"https://api.github.com/repos/react-native-training/react-native-elements/issues/comments{/number}","contents_url":"https://api.github.com/repos/react-native-training/react-native-elements/contents/{+path}","compare_url":"https://api.github.com/repos/react-native-training/react-native-elements/compare/{base}...{head}","merges_url":"https://api.github.com/repos/react-native-training/react-native-elements/merges","archive_url":"https://api.github.com/repos/react-native-training/react-native-elements/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/react-native-training/react-native-elements/downloads","issues_url":"https://api.github.com/repos/react-native-training/react-native-elements/issues{/number}","pulls_url":"https://api.github.com/repos/react-native-training/react-native-elements/pulls{/number}","milestones_url":"https://api.github.com/repos/react-native-training/react-native-elements/milestones{/number}","notifications_url":"https://api.github.com/repos/react-native-training/react-native-elements/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/react-native-training/react-native-elements/labels{/name}","releases_url":"https://api.github.com/repos/react-native-training/react-native-elements/releases{/id}","deployments_url":"https://api.github.com/repos/react-native-training/react-native-elements/deployments","created_at":"2016-09-08T14:21:41Z","updated_at":"2018-02-25T17:10:15Z","pushed_at":"2018-02-25T17:20:13Z","git_url":"git://github.com/react-native-training/react-native-elements.git","ssh_url":"git@github.com:react-native-training/react-native-elements.git","clone_url":"https://github.com/react-native-training/react-native-elements.git","svn_url":"https://github.com/react-native-training/react-native-elements","homepage":"https://react-native-training.github.io/react-native-elements/","size":15832,"stargazers_count":9529,"watchers_count":9529,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1047,"mirror_url":null,"archived":false,"open_issues_count":43,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":1047,"open_issues":43,"watchers":9529,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/react-native-training/react-native-elements/pulls/916"},"html":{"href":"https://github.com/react-native-training/react-native-elements/pull/916"},"issue":{"href":"https://api.github.com/repos/react-native-training/react-native-elements/issues/916"},"comments":{"href":"https://api.github.com/repos/react-native-training/react-native-elements/issues/916/comments"},"review_comments":{"href":"https://api.github.com/repos/react-native-training/react-native-elements/pulls/916/comments"},"review_comment":{"href":"https://api.github.com/repos/react-native-training/react-native-elements/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/react-native-training/react-native-elements/pulls/916/commits"},"statuses":{"href":"https://api.github.com/repos/react-native-training/react-native-elements/statuses/8e92a36713735e21fd626f8561b108696aaf6bf0"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"iRoachie"}}