{"action":"created","comment":{"url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/pulls/comments/241450530","pull_request_review_id":184726107,"id":241450530,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0MTQ1MDUzMA==","diff_hunk":"@@ -409,6 +410,28 @@ const FlingGestureHandler = createHandler(\n   {}\n );\n \n+const ForceTouchFallback = props => (\n+  <Text style={{ color: 'red' }}>\n+    Force Touch is not available on this platform","path":"GestureHandler.js","position":14,"original_position":14,"commit_id":"296cb2e7d7d8a2f49b952b22e0c9c95371be4a69","original_commit_id":"296cb2e7d7d8a2f49b952b22e0c9c95371be4a69","user":{"login":"kmagiera","id":726445,"node_id":"MDQ6VXNlcjcyNjQ0NQ==","avatar_url":"https://avatars2.githubusercontent.com/u/726445?v=4","gravatar_id":"","url":"https://api.github.com/users/kmagiera","html_url":"https://github.com/kmagiera","followers_url":"https://api.github.com/users/kmagiera/followers","following_url":"https://api.github.com/users/kmagiera/following{/other_user}","gists_url":"https://api.github.com/users/kmagiera/gists{/gist_id}","starred_url":"https://api.github.com/users/kmagiera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmagiera/subscriptions","organizations_url":"https://api.github.com/users/kmagiera/orgs","repos_url":"https://api.github.com/users/kmagiera/repos","events_url":"https://api.github.com/users/kmagiera/events{/privacy}","received_events_url":"https://api.github.com/users/kmagiera/received_events","type":"User","site_admin":false},"body":"I don't think it is a good idea to display text like that. Some people may still only test their stuff on the newest iPhone and never see that until it is too late. Lets keep it render the same way as it used to but add `console.warn` to `componentDidMount` maybe?","created_at":"2018-12-13T15:44:12Z","updated_at":"2018-12-13T15:44:12Z","html_url":"https://github.com/kmagiera/react-native-gesture-handler/pull/374#discussion_r241450530","pull_request_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/pulls/374","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/pulls/comments/241450530"},"html":{"href":"https://github.com/kmagiera/react-native-gesture-handler/pull/374#discussion_r241450530"},"pull_request":{"href":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/pulls/374"}}},"pull_request":{"url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/pulls/374","id":237164704,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM3MTY0NzA0","html_url":"https://github.com/kmagiera/react-native-gesture-handler/pull/374","diff_url":"https://github.com/kmagiera/react-native-gesture-handler/pull/374.diff","patch_url":"https://github.com/kmagiera/react-native-gesture-handler/pull/374.patch","issue_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/issues/374","number":374,"state":"open","locked":false,"title":"Force Touch  GH","user":{"login":"osdnk","id":25709300,"node_id":"MDQ6VXNlcjI1NzA5MzAw","avatar_url":"https://avatars2.githubusercontent.com/u/25709300?v=4","gravatar_id":"","url":"https://api.github.com/users/osdnk","html_url":"https://github.com/osdnk","followers_url":"https://api.github.com/users/osdnk/followers","following_url":"https://api.github.com/users/osdnk/following{/other_user}","gists_url":"https://api.github.com/users/osdnk/gists{/gist_id}","starred_url":"https://api.github.com/users/osdnk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osdnk/subscriptions","organizations_url":"https://api.github.com/users/osdnk/orgs","repos_url":"https://api.github.com/users/osdnk/repos","events_url":"https://api.github.com/users/osdnk/events{/privacy}","received_events_url":"https://api.github.com/users/osdnk/received_events","type":"User","site_admin":false},"body":"## Motivation\r\nAdd possibility of handling force touch gesture. \r\n\r\n## Changes\r\nAdd proper handler on iOS and no-op fallback on Android. On iOS for calculating force touch only first finger is concerned which is normal behaviour I observed on iOS. Force is expressed as value greater of equal 0 and lesser or equal 1.\r\nI added two options of customisation.\r\n\r\n### `minForce`\r\n`minForce` is a minimal pressure which has to be applied in order to activate handler.\r\n\r\n### `maxForce`\r\n`minForce` is a maximal force which could be applied. If greater force applied, handler fails. \r\n\r\nOn releasing first finger gesture fails or ends (if has been activated already).\r\n\r\n\r\nAnd added simple check method to determine is it possible to use `forceTouch` on current device which exporting RN's constant.","created_at":"2018-12-09T23:16:11Z","updated_at":"2018-12-13T15:44:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e2355e78f4ed3fa7c8d100efe7e2e7a2571787c0","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/pulls/374/commits","review_comments_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/pulls/374/comments","review_comment_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/issues/374/comments","statuses_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/statuses/296cb2e7d7d8a2f49b952b22e0c9c95371be4a69","head":{"label":"kmagiera:force-touch","ref":"force-touch","sha":"296cb2e7d7d8a2f49b952b22e0c9c95371be4a69","user":{"login":"kmagiera","id":726445,"node_id":"MDQ6VXNlcjcyNjQ0NQ==","avatar_url":"https://avatars2.githubusercontent.com/u/726445?v=4","gravatar_id":"","url":"https://api.github.com/users/kmagiera","html_url":"https://github.com/kmagiera","followers_url":"https://api.github.com/users/kmagiera/followers","following_url":"https://api.github.com/users/kmagiera/following{/other_user}","gists_url":"https://api.github.com/users/kmagiera/gists{/gist_id}","starred_url":"https://api.github.com/users/kmagiera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmagiera/subscriptions","organizations_url":"https://api.github.com/users/kmagiera/orgs","repos_url":"https://api.github.com/users/kmagiera/repos","events_url":"https://api.github.com/users/kmagiera/events{/privacy}","received_events_url":"https://api.github.com/users/kmagiera/received_events","type":"User","site_admin":false},"repo":{"id":72087685,"node_id":"MDEwOlJlcG9zaXRvcnk3MjA4NzY4NQ==","name":"react-native-gesture-handler","full_name":"kmagiera/react-native-gesture-handler","private":false,"owner":{"login":"kmagiera","id":726445,"node_id":"MDQ6VXNlcjcyNjQ0NQ==","avatar_url":"https://avatars2.githubusercontent.com/u/726445?v=4","gravatar_id":"","url":"https://api.github.com/users/kmagiera","html_url":"https://github.com/kmagiera","followers_url":"https://api.github.com/users/kmagiera/followers","following_url":"https://api.github.com/users/kmagiera/following{/other_user}","gists_url":"https://api.github.com/users/kmagiera/gists{/gist_id}","starred_url":"https://api.github.com/users/kmagiera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmagiera/subscriptions","organizations_url":"https://api.github.com/users/kmagiera/orgs","repos_url":"https://api.github.com/users/kmagiera/repos","events_url":"https://api.github.com/users/kmagiera/events{/privacy}","received_events_url":"https://api.github.com/users/kmagiera/received_events","type":"User","site_admin":false},"html_url":"https://github.com/kmagiera/react-native-gesture-handler","description":"Declarative API exposing platform native touch and gesture system to React Native.","fork":false,"url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler","forks_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/forks","keys_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/teams","hooks_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/hooks","issue_events_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/issues/events{/number}","events_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/events","assignees_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/assignees{/user}","branches_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/branches{/branch}","tags_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/tags","blobs_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/git/refs{/sha}","trees_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/statuses/{sha}","languages_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/languages","stargazers_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/stargazers","contributors_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/contributors","subscribers_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/subscribers","subscription_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/subscription","commits_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/commits{/sha}","git_commits_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/git/commits{/sha}","comments_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/comments{/number}","issue_comment_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/issues/comments{/number}","contents_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/contents/{+path}","compare_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/merges","archive_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/downloads","issues_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/issues{/number}","pulls_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/pulls{/number}","milestones_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/milestones{/number}","notifications_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/labels{/name}","releases_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/releases{/id}","deployments_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/deployments","created_at":"2016-10-27T08:31:38Z","updated_at":"2018-12-13T15:33:52Z","pushed_at":"2018-12-13T15:36:11Z","git_url":"git://github.com/kmagiera/react-native-gesture-handler.git","ssh_url":"git@github.com:kmagiera/react-native-gesture-handler.git","clone_url":"https://github.com/kmagiera/react-native-gesture-handler.git","svn_url":"https://github.com/kmagiera/react-native-gesture-handler","homepage":"https://kmagiera.github.io/react-native-gesture-handler","size":30954,"stargazers_count":1511,"watchers_count":1511,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":125,"mirror_url":null,"archived":false,"open_issues_count":68,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":125,"open_issues":68,"watchers":1511,"default_branch":"master"}},"base":{"label":"kmagiera:master","ref":"master","sha":"5915c60789a119d41045abe3ce8caa8afec4cafa","user":{"login":"kmagiera","id":726445,"node_id":"MDQ6VXNlcjcyNjQ0NQ==","avatar_url":"https://avatars2.githubusercontent.com/u/726445?v=4","gravatar_id":"","url":"https://api.github.com/users/kmagiera","html_url":"https://github.com/kmagiera","followers_url":"https://api.github.com/users/kmagiera/followers","following_url":"https://api.github.com/users/kmagiera/following{/other_user}","gists_url":"https://api.github.com/users/kmagiera/gists{/gist_id}","starred_url":"https://api.github.com/users/kmagiera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmagiera/subscriptions","organizations_url":"https://api.github.com/users/kmagiera/orgs","repos_url":"https://api.github.com/users/kmagiera/repos","events_url":"https://api.github.com/users/kmagiera/events{/privacy}","received_events_url":"https://api.github.com/users/kmagiera/received_events","type":"User","site_admin":false},"repo":{"id":72087685,"node_id":"MDEwOlJlcG9zaXRvcnk3MjA4NzY4NQ==","name":"react-native-gesture-handler","full_name":"kmagiera/react-native-gesture-handler","private":false,"owner":{"login":"kmagiera","id":726445,"node_id":"MDQ6VXNlcjcyNjQ0NQ==","avatar_url":"https://avatars2.githubusercontent.com/u/726445?v=4","gravatar_id":"","url":"https://api.github.com/users/kmagiera","html_url":"https://github.com/kmagiera","followers_url":"https://api.github.com/users/kmagiera/followers","following_url":"https://api.github.com/users/kmagiera/following{/other_user}","gists_url":"https://api.github.com/users/kmagiera/gists{/gist_id}","starred_url":"https://api.github.com/users/kmagiera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmagiera/subscriptions","organizations_url":"https://api.github.com/users/kmagiera/orgs","repos_url":"https://api.github.com/users/kmagiera/repos","events_url":"https://api.github.com/users/kmagiera/events{/privacy}","received_events_url":"https://api.github.com/users/kmagiera/received_events","type":"User","site_admin":false},"html_url":"https://github.com/kmagiera/react-native-gesture-handler","description":"Declarative API exposing platform native touch and gesture system to React Native.","fork":false,"url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler","forks_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/forks","keys_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/teams","hooks_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/hooks","issue_events_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/issues/events{/number}","events_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/events","assignees_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/assignees{/user}","branches_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/branches{/branch}","tags_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/tags","blobs_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/git/refs{/sha}","trees_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/statuses/{sha}","languages_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/languages","stargazers_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/stargazers","contributors_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/contributors","subscribers_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/subscribers","subscription_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/subscription","commits_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/commits{/sha}","git_commits_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/git/commits{/sha}","comments_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/comments{/number}","issue_comment_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/issues/comments{/number}","contents_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/contents/{+path}","compare_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/merges","archive_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/downloads","issues_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/issues{/number}","pulls_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/pulls{/number}","milestones_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/milestones{/number}","notifications_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/labels{/name}","releases_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/releases{/id}","deployments_url":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/deployments","created_at":"2016-10-27T08:31:38Z","updated_at":"2018-12-13T15:33:52Z","pushed_at":"2018-12-13T15:36:11Z","git_url":"git://github.com/kmagiera/react-native-gesture-handler.git","ssh_url":"git@github.com:kmagiera/react-native-gesture-handler.git","clone_url":"https://github.com/kmagiera/react-native-gesture-handler.git","svn_url":"https://github.com/kmagiera/react-native-gesture-handler","homepage":"https://kmagiera.github.io/react-native-gesture-handler","size":30954,"stargazers_count":1511,"watchers_count":1511,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":125,"mirror_url":null,"archived":false,"open_issues_count":68,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":125,"open_issues":68,"watchers":1511,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/pulls/374"},"html":{"href":"https://github.com/kmagiera/react-native-gesture-handler/pull/374"},"issue":{"href":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/issues/374"},"comments":{"href":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/issues/374/comments"},"review_comments":{"href":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/pulls/374/comments"},"review_comment":{"href":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/pulls/374/commits"},"statuses":{"href":"https://api.github.com/repos/kmagiera/react-native-gesture-handler/statuses/296cb2e7d7d8a2f49b952b22e0c9c95371be4a69"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"kmagiera"}}