react-native/Libraries/Components
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
..
ActivityIndicatorIOS Compose propTypes from View.propTypes where appropriate. 2015-11-18 13:06:27 -08:00
Clipboard Annotate Clipboard module 2016-02-15 10:05:34 -08:00
DatePicker Replace direct access of NativeModules.UIManager with require('UIManager') 2016-01-30 07:36:34 -08:00
DatePickerAndroid pick up some easy-to-fix lint warnings 2016-02-16 02:00:57 -08:00
DrawerAndroid Bugfix - Typos 2015-12-15 09:09:32 -08:00
Intent Add cross-platform Linking module 2016-01-26 14:34:31 -08:00
MapView Add MapView annotation callback when it gets / lost the focus 2016-01-29 06:26:30 -08:00
Navigation Deploy v0.21.0 2016-02-01 17:13:35 -08:00
Picker pick up some easy-to-fix lint warnings 2016-02-16 02:00:57 -08:00
ProgressBarAndroid ProgressBarAndroid: default value for styleAttr 2016-01-07 12:02:37 -08:00
ProgressViewIOS Compose propTypes from View.propTypes where appropriate. 2015-11-18 13:06:27 -08:00
RefreshControl Allow customized refreshControl in ScrollView for Android 2016-02-02 07:12:32 -08:00
ScrollView CI now builds docs website and deploys it to /%version% path 2016-02-11 06:17:42 -08:00
SegmentedControlIOS Compose propTypes from View.propTypes where appropriate. 2015-11-18 13:06:27 -08:00
SliderIOS Add option for both min/max track image. 2015-12-21 10:30:39 -08:00
StatusBar Add imperative API to StatusBar 2016-02-16 03:04:49 -08:00
Switch pick up some easy-to-fix lint warnings 2016-02-16 02:00:57 -08:00
SwitchAndroid Bugfix - Typos 2015-12-15 09:09:32 -08:00
SwitchIOS Added ColorPropType 2015-12-23 10:08:38 -08:00
TabBarIOS Added ColorPropType 2015-12-23 10:08:38 -08:00
TextInput added accessibility props for touchables 2016-02-04 05:13:32 -08:00
TimePickerAndroid pick up some easy-to-fix lint warnings 2016-02-16 02:00:57 -08:00
ToastAndroid Open source Android date and time pickers 2016-01-26 10:31:17 -08:00
ToolbarAndroid Added ColorPropType 2015-12-23 10:08:38 -08:00
Touchable Add hitSlop prop on iOS and Android 2016-02-16 16:51:39 -08:00
UnimplementedViews Quick fix to require cycle in UnimplementedView 2015-11-23 14:14:32 -08:00
View Add hitSlop prop on iOS and Android 2016-02-16 16:51:39 -08:00
ViewPager Add onPageScrollStateChanged for ViewPagerAndroid 2016-01-29 01:17:35 -08:00
WebView pick up some easy-to-fix lint warnings 2016-02-16 02:00:57 -08:00
ScrollResponder.js Fix scrollTo when using RefreshControl on Android 2016-02-03 11:13:33 -08:00
StaticContainer.js Move stuff out of vendor/react_contrib/ 2015-10-12 11:18:30 -07:00
StaticRenderer.js [Haste] @provides -> @providesModule StaticRenderer 2015-05-14 08:42:13 -08:00
Subscribable.js [ReactNative] clean lint for Libraries/Components 2015-05-18 15:54:07 -08:00