0883e52c74
Summary: Follow up to #18470, which has not yet landed in a release so we may want to hold off merging this until it has so that people receive the deprecation warning. *** This PR removes the previously deprecated behavior of touchableHandleActivePressIn/Out (as well as onPressIn/Out being called on TV platforms for focus/blur. Instead, users should utilize the new `onFocus` and `onBlur` for these events. This was because on TV platforms onPressIn/Out was overloaded to trigger for not only presses but these focus events as well. The normal behavior of true presses will still defer to touchableHandleActivePressIn/Out (which defers to onPressIn/Out). <!-- Required. Help reviewers and the release process by writing your own release notes. See below for an example. --> [TV] [BREAKING] [Touchable] - On TV platforms `onPressIn` and `onPressOut` on Touchables will now only be triggered for press events, not for focus/blur. Instead, you can use `onFocus` and `onBlur`. <!-- **INTERNAL and MINOR tagged notes will not be included in the next version's final release notes.** CATEGORY [----------] TYPE [ CLI ] [-------------] LOCATION [ DOCS ] [ BREAKING ] [-------------] [ GENERAL ] [ BUGFIX ] [ {Component} ] [ INTERNAL ] [ ENHANCEMENT ] [ {Filename} ] [ IOS ] [ FEATURE ] [ {Directory} ] |-----------| [ ANDROID ] [ MINOR ] [ {Framework} ] - | {Message} | [----------] [-------------] [-------------] |-----------| EXAMPLES: [IOS] [BREAKING] [FlatList] - Change a thing that breaks other things [ANDROID] [BUGFIX] [TextInput] - Did a thing to TextInput [CLI] [FEATURE] [local-cli/info/info.js] - CLI easier to do things with [DOCS] [BUGFIX] [GettingStarted.md] - Accidentally a thing/word [GENERAL] [ENHANCEMENT] [Yoga] - Added new yoga thing/position [INTERNAL] [FEATURE] [./scripts] - Added thing to script that nobody will see --> Cc/ matthargett Closes https://github.com/facebook/react-native/pull/19718 Differential Revision: D8450514 Pulled By: hramos fbshipit-source-id: 818e85a338a451834b54d8965602699fc9b24e87 |
||
---|---|---|
.. | ||
__mocks__ | ||
__tests__ | ||
BoundingDimensions.js | ||
PooledClass.js | ||
Position.js | ||
Touchable.js | ||
TouchableBounce.js | ||
TouchableHighlight.js | ||
TouchableNativeFeedback.android.js | ||
TouchableNativeFeedback.ios.js | ||
TouchableOpacity.js | ||
TouchableWithoutFeedback.js | ||
ensureComponentIsNative.js | ||
ensurePositiveDelayProps.js |