Jesse Ruder
0176ac488e
Add hitSlop prop on iOS and Android
...
Summary:New prop `hitSlop` allows extending the touch area of Touchable components. This makes it easier to touch small buttons without needing to change your styles.
It takes `top`, `bottom`, `left`, and `right` same as the `pressRetentionOffset` prop. When a touch is moved, `hitSlop` is combined with `pressRetentionOffset` to determine how far the touch can move off the button before deactivating the button.
On Android I had to add a new file `ids.xml` to generate a unique ID to use for the tag where I store the `hitSlop` state. The iOS side is more straightforward.
terribleben worked on the iOS and JS parts of this diff.
Fixes #110
Closes https://github.com/facebook/react-native/pull/5720
Differential Revision: D2941671
Pulled By: androidtrunkagent
fb-gh-sync-id: 07e3eb8b6a36eebf76968fdaac3c6ac335603194
shipit-source-id: 07e3eb8b6a36eebf76968fdaac3c6ac335603194
2016-02-16 16:51:39 -08:00
..
2015-04-26 02:17:13 -08:00
2015-08-17 08:46:00 -07:00
2015-06-25 09:17:01 -08:00
2015-09-04 07:00:21 -08:00
2015-12-23 10:07:28 -08:00
2016-01-07 12:03:17 -08:00
2015-12-01 09:00:28 -08:00
2015-11-27 04:03:42 -08:00
2015-12-30 14:16:29 -08:00
2016-01-20 11:11:13 -08:00
2015-06-25 09:15:21 -08:00
2015-06-25 09:15:21 -08:00
2015-12-17 06:46:33 -08:00
2016-01-04 06:38:30 -08:00
2015-09-02 06:11:24 -08:00
2015-09-02 06:11:24 -08:00
2015-06-05 09:58:25 -08:00
2015-11-14 10:28:28 -08:00
2015-10-08 11:56:25 -07:00
2016-01-29 06:26:30 -08:00
2016-02-03 11:36:36 -08:00
2016-01-04 06:38:30 -08:00
2015-11-26 08:54:16 -08:00
2015-03-26 02:42:24 -08:00
2016-01-29 06:26:30 -08:00
2015-11-26 08:54:16 -08:00
2015-11-26 08:54:16 -08:00
2015-08-14 04:47:12 -08:00
2015-11-17 06:37:31 -08:00
2015-07-28 07:21:50 -08:00
2015-11-25 04:49:45 -08:00
2015-08-14 04:47:12 -08:00
2015-11-25 04:49:45 -08:00
2015-08-14 01:57:18 -08:00
2016-01-22 17:27:32 -08:00
2015-03-26 02:42:24 -08:00
2015-11-14 10:28:28 -08:00
2015-12-08 03:32:30 -08:00
2015-12-08 03:32:30 -08:00
2015-03-26 02:42:24 -08:00
2015-12-08 03:32:30 -08:00
2015-12-08 07:48:26 -08:00
2015-12-08 07:48:26 -08:00
2015-03-26 02:42:24 -08:00
2015-12-10 10:12:29 -08:00
2015-03-26 02:42:24 -08:00
2015-06-03 09:49:35 -08:00
2015-11-14 10:28:28 -08:00
2016-01-04 08:00:29 -08:00
2016-02-07 13:40:29 -08:00
2016-01-04 08:00:29 -08:00
2016-01-04 08:00:29 -08:00
2015-11-25 04:12:34 -08:00
2015-11-19 11:15:48 -08:00
2016-02-12 09:28:21 -08:00
2015-11-25 04:12:34 -08:00
2016-02-01 11:05:36 -08:00
2015-11-03 14:49:30 -08:00
2015-11-03 14:49:30 -08:00
2015-04-29 08:08:45 -08:00
2015-12-10 10:12:29 -08:00
2016-01-27 18:26:56 -08:00
2016-01-27 18:26:56 -08:00
2015-12-21 10:30:39 -08:00
2015-12-21 10:30:39 -08:00
2015-03-26 02:42:24 -08:00
2015-12-21 10:30:39 -08:00
2015-09-02 06:11:24 -08:00
2015-03-26 02:42:24 -08:00
2015-03-26 02:42:24 -08:00
2015-09-02 06:11:24 -08:00
2015-09-02 06:11:24 -08:00
2015-11-05 09:39:30 -08:00
2015-12-08 03:32:30 -08:00
2015-12-08 03:32:30 -08:00
2015-03-26 02:42:24 -08:00
2015-12-08 03:32:30 -08:00
2015-03-26 02:42:24 -08:00
2015-09-02 06:11:24 -08:00
2015-07-07 06:15:20 -08:00
2016-02-16 16:51:39 -08:00
2016-02-16 16:51:39 -08:00
2015-03-26 02:42:24 -08:00
2015-12-21 10:18:47 -08:00
2016-02-16 16:51:39 -08:00
2016-02-01 18:01:35 -08:00
2016-02-01 18:01:35 -08:00
2015-03-26 02:42:24 -08:00
2016-02-01 18:01:35 -08:00
2015-09-02 06:11:24 -08:00
2015-09-04 07:00:21 -08:00
2015-08-13 07:56:41 -08:00
2015-11-14 10:28:28 -08:00
2016-01-15 05:15:31 -08:00