Docs: Update TouchableWithoutFeedback.js
Summary: Add description for onPressIn and onPressOut. Here is the snack to illustrate it. https://snack.expo.io/Byed5cKBW <!-- Thank you for sending the PR! If you changed any code, please provide us with clear instructions on how you verified your changes work. In other words, a test plan is *required*. Bonus points for screenshots and videos! Please read the Contribution Guidelines at https://github.com/facebook/react-native/blob/master/CONTRIBUTING.md to learn more about contributing to React Native. Happy contributing! --> Closes https://github.com/facebook/react-native/pull/15045 Differential Revision: D5434900 Pulled By: hramos fbshipit-source-id: b235c3649e63b0bd149b0a65e439cd2433b01b8a
This commit is contained in:
parent
9c2ce53b89
commit
8f36405380
|
@ -59,8 +59,15 @@ const TouchableWithoutFeedback = createReactClass({
|
|||
* that steals the responder lock).
|
||||
*/
|
||||
onPress: PropTypes.func,
|
||||
/**
|
||||
* Called as soon as the touchable element is pressed and invoked even before onPress.
|
||||
* This can be useful when making network requests.
|
||||
*/
|
||||
onPressIn: PropTypes.func,
|
||||
onPressOut: PropTypes.func,
|
||||
/**
|
||||
* Called as soon as the touch is released even before onPress.
|
||||
*/
|
||||
onPressOut: PropTypes.func,
|
||||
/**
|
||||
* Invoked on mount and layout changes with
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue