react-native/Libraries/Components/Touchable
Jay Phelps 0883e52c74 remove deprecated behavior of touchableHandleActivePressIn/Out called for focus/blur (#19718)
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
2018-06-15 10:46:47 -07:00
..
__mocks__ Prettier React Native Libraries 2018-05-10 19:10:38 -07:00
__tests__ Update Jest snapshots 2018-05-29 17:30:16 -07:00
BoundingDimensions.js Prettier React Native Libraries 2018-05-10 19:10:38 -07:00
PooledClass.js Prettier React Native Libraries 2018-05-10 19:10:38 -07:00
Position.js Prettier React Native Libraries 2018-05-10 19:10:38 -07:00
Touchable.js remove deprecated behavior of touchableHandleActivePressIn/Out called for focus/blur (#19718) 2018-06-15 10:46:47 -07:00
TouchableBounce.js Trigger onFocus/onBlur instead of onPressIn/onPressOut (eventually, but for now just deprecate) (#18470) 2018-06-11 15:31:15 -07:00
TouchableHighlight.js Switch to Platform.isTV to pass Android Flow 2018-06-10 13:45:57 -07:00
TouchableNativeFeedback.android.js Prettier React Native Libraries 2018-05-10 19:10:38 -07:00
TouchableNativeFeedback.ios.js Prettier React Native Libraries 2018-05-10 19:10:38 -07:00
TouchableOpacity.js Flow Type TouchableOpacity 2018-05-12 23:25:09 -07:00
TouchableWithoutFeedback.js Trigger onFocus/onBlur instead of onPressIn/onPressOut (eventually, but for now just deprecate) (#18470) 2018-06-11 15:31:15 -07:00
ensureComponentIsNative.js Prettier React Native Libraries 2018-05-10 19:10:38 -07:00
ensurePositiveDelayProps.js Prettier React Native Libraries 2018-05-10 19:10:38 -07:00