react-native/Libraries/Components/Touchable
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
..
BoundingDimensions.js fix Libraries/Components/Touchable lint warnings 2015-11-30 17:16:26 -08:00
Position.js Bugfix - Typos 2015-12-15 09:09:32 -08:00
Touchable.js Add hitSlop prop on iOS and Android 2016-02-16 16:51:39 -08:00
TouchableBounce.js Add hitSlop prop on iOS and Android 2016-02-16 16:51:39 -08:00
TouchableHighlight.js Add hitSlop prop on iOS and Android 2016-02-16 16:51:39 -08:00
TouchableNativeFeedback.android.js Add hitSlop prop on iOS and Android 2016-02-16 16:51:39 -08:00
TouchableNativeFeedback.ios.js [ReactNative] Add TouchableNativeFeedback to OSS 2015-08-26 01:31:52 -08:00
TouchableOpacity.js Add hitSlop prop on iOS and Android 2016-02-16 16:51:39 -08:00
TouchableWithoutFeedback.js Add hitSlop prop on iOS and Android 2016-02-16 16:51:39 -08:00
ensureComponentIsNative.js flowified Libraries from Avik 2015-03-25 12:44:28 -08:00
ensurePositiveDelayProps.js [Touchable] Add custom delay props to Touchable components 2015-06-03 12:57:28 -08:00