react-native/Libraries/Components
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
..
AccessibilityInfo Prettier React Native Libraries 2018-05-10 19:10:38 -07:00
ActivityIndicator Revert D8342904: [StrictMode] Fix more forwardRef displayNames 2018-06-11 20:46:27 -07:00
AppleTV Spread TVViewProps into ViewProps instead of intersection 2018-05-12 10:35:26 -07:00
CheckBox Don't pass additional args to requireNativeComponent in .android.js files 2018-06-10 15:38:32 -07:00
Clipboard Prettier React Native Libraries 2018-05-10 19:10:38 -07:00
DatePicker RN: Remove Native Prop Validation 2018-06-01 12:54:14 -07:00
DatePickerAndroid Prettier React Native Libraries 2018-05-10 19:10:38 -07:00
DrawerAndroid Don't pass additional args to requireNativeComponent in .android.js files 2018-06-10 15:38:32 -07:00
Keyboard Bump Prettier to 1.13.4 on xplat 2018-06-06 05:32:06 -07:00
MaskedView RN: Remove Native Prop Validation 2018-06-01 12:54:14 -07:00
Navigation Prettier React Native Libraries 2018-05-10 19:10:38 -07:00
Picker Don't pass additional args to requireNativeComponent in .android.js files 2018-06-10 15:38:32 -07:00
ProgressBarAndroid Revert D8342904: [StrictMode] Fix more forwardRef displayNames 2018-06-11 20:46:27 -07:00
ProgressViewIOS RN: Remove Native Prop Validation 2018-06-01 12:54:14 -07:00
RefreshControl RefreshControl ES6 Class 2018-06-01 10:25:30 -07:00
SafeAreaView RN: Remove Native Prop Validation 2018-06-01 12:54:14 -07:00
ScrollView Switch to Platform.isTV to pass Android Flow 2018-06-10 13:45:57 -07:00
SegmentedControlIOS RN: Remove Native Prop Validation 2018-06-01 12:54:14 -07:00
Slider Revert D8342904: [StrictMode] Fix more forwardRef displayNames 2018-06-11 20:46:27 -07:00
StatusBar Prettier React Native Libraries 2018-05-10 19:10:38 -07:00
Switch Bump Prettier to 1.13.4 on xplat 2018-06-06 05:32:06 -07:00
TabBarIOS Don't pass additional args to requireNativeComponent in .android.js files 2018-06-10 15:38:32 -07:00
TextInput Feature/add decimal pad to android (#19714) 2018-06-14 14:01:51 -07:00
TimePickerAndroid Prettier React Native Libraries 2018-05-10 19:10:38 -07:00
ToastAndroid Prettier React Native Libraries 2018-05-10 19:10:38 -07:00
ToolbarAndroid Don't pass additional args to requireNativeComponent in .android.js files 2018-06-10 15:38:32 -07:00
Touchable remove deprecated behavior of touchableHandleActivePressIn/Out called for focus/blur (#19718) 2018-06-15 10:46:47 -07:00
UnimplementedViews Remove @providesModule from all modules 2018-04-25 07:37:10 -07:00
View fix forwardRef displayName on Text and View 2018-06-11 19:22:51 -07:00
ViewPager Don't pass additional args to requireNativeComponent in .android.js files 2018-06-10 15:38:32 -07:00
WebView Don't pass additional args to requireNativeComponent in .android.js files 2018-06-10 15:38:32 -07:00
Button.js Prettier React Native Libraries 2018-05-10 19:10:38 -07:00
ScrollResponder.js Fix keyboard handling with keyboardShouldPersistTaps: never 2018-05-14 23:46:50 -07:00
StaticContainer.react.js Prettier React Native Libraries 2018-05-10 19:10:38 -07:00
StaticRenderer.js Prettier React Native Libraries 2018-05-10 19:10:38 -07:00
Subscribable.js Prettier React Native Libraries 2018-05-10 19:10:38 -07:00