react-native/Libraries
Janic Duplessis ffe6c110f7 Fix keyboard handling with keyboardShouldPersistTaps: never
Summary:
When `keyboardShouldPersistTaps` is `"never"` it would break when doing the following steps:

- Tap input 1, keyboard goes up
- Tap input 2, keyboard stays down (The bug I expected without the isTextInput check was that it would dismiss instead :o )
- Tap outside, keyboard stays down. It should dismiss here since it should never persist taps (unless tapping another input)

What seems to happen is that RN `currentlyFocusedTextInput` goes out of sync with the focused text input and is null even if there is still a text input focused. I haven't had time to investigate the cause of that (probably some race condition because of trying to focus and blur at the same time) but we should not try to dismiss the keyboard when tapping another TextInput in the first place.

I reproduced the bug mentioned by setting `keyboardShouldPersistTaps` to `"never"` in RNTesterPage.js and then using the steps described above. I made sure that the bug did not happen after this change.

[GENERAL][BUGFIX][ScrollResponder] - Fix keyboard handling with keyboardShouldPersistTaps: never
Closes https://github.com/facebook/react-native/pull/19255

Differential Revision: D8002818

Pulled By: mdvacca

fbshipit-source-id: 6ecb8d2c30eb9338529471a958b5dc04037c7ec6
2018-05-14 23:46:50 -07:00
..
ART Prettier React Native Libraries 2018-05-10 19:10:38 -07:00
ActionSheetIOS Remove @providesModule from all modules 2018-04-25 07:37:10 -07:00
Alert Prettier React Native Libraries 2018-05-10 19:10:38 -07:00
Animated Prettier React Native Libraries 2018-05-10 19:10:38 -07:00
AppState Prettier React Native Libraries 2018-05-10 19:10:38 -07:00
BatchedBridge Detach RN Bridge and CS 2018-05-11 10:57:53 -07:00
Blob Convert react-native-github/Libraries to let/const 2018-05-10 16:16:35 -07:00
BugReporting Prettier React Native Libraries 2018-05-10 19:10:38 -07:00
CameraRoll Prettier React Native Libraries 2018-05-10 19:10:38 -07:00
Color Prettier React Native Libraries 2018-05-10 19:10:38 -07:00
Components Fix keyboard handling with keyboardShouldPersistTaps: never 2018-05-14 23:46:50 -07:00
Core Prettier React Native Libraries 2018-05-10 19:10:38 -07:00
EventEmitter Prettier React Native Libraries 2018-05-10 19:10:38 -07:00
Experimental Flowtype SwipeableRow 2018-05-14 00:24:44 -07:00
Geolocation Prettier React Native Libraries 2018-05-10 19:10:38 -07:00
Image Fix crash during Archiving project in IOS 2018-05-14 11:49:53 -07:00
Inspector Flowtype ListView 2018-05-14 00:24:44 -07:00
Interaction Prettier React Native Libraries 2018-05-10 19:10:38 -07:00
JSInspector Prettier React Native Libraries 2018-05-10 19:10:38 -07:00
LayoutAnimation Remove @providesModule from all modules 2018-04-25 07:37:10 -07:00
Linking Prettier React Native Libraries 2018-05-10 19:10:38 -07:00
LinkingIOS Update license headers for MIT license 2018-02-16 18:31:53 -08:00
Lists Flowtype ListView 2018-05-14 00:24:44 -07:00
Modal Prettier React Native Libraries 2018-05-10 19:10:38 -07:00
NativeAnimation Fix tvOS build breakage in RCTAnimation Xcode project 2018-04-02 22:33:45 -07:00
Network Prettier React Native Libraries 2018-05-10 19:10:38 -07:00
Performance Prettier React Native Libraries 2018-05-10 19:10:38 -07:00
PermissionsAndroid Prettier React Native Libraries 2018-05-10 19:10:38 -07:00
PushNotificationIOS Prettier React Native Libraries 2018-05-10 19:10:38 -07:00
RCTTest RN: Fix Type for ReactNative.NativeComponent (2/2) 2018-05-13 01:05:57 -07:00
ReactNative RN: Fix $FlowFixMe in AppContainer 2018-05-14 17:52:25 -07:00
Renderer RN: Fix Type for ReactNative.NativeComponent (1/2) 2018-05-13 01:05:56 -07:00
Sample Add missing copyright headers 2018-05-11 13:00:50 -07:00
Settings Prettier React Native Libraries 2018-05-10 19:10:38 -07:00
Share Prettier React Native Libraries 2018-05-10 19:10:38 -07:00
Storage Prettier React Native Libraries 2018-05-10 19:10:38 -07:00
StyleSheet Flow Type ScrollView 2018-05-12 10:35:27 -07:00
SurfaceBackedComponent Update license headers for MIT license 2018-02-16 18:31:53 -08:00
SurfaceHostingComponent Update license headers for MIT license 2018-02-16 18:31:53 -08:00
Text RN: Revise $FlowFixMe in Text 2018-05-14 17:52:25 -07:00
Types Remove @providesModule from all modules 2018-04-25 07:37:10 -07:00
Utilities Prettier React Native Libraries 2018-05-10 19:10:38 -07:00
Vibration Prettier React Native Libraries 2018-05-10 19:10:38 -07:00
WebSocket Reland prevent console logging on iOS 11.3+ within WebSocket 2018-05-11 14:30:54 -07:00
Wrapper Update additional license headers 2018-03-08 12:10:14 -08:00
fishhook Merge fishhook.xcodeproj in RCTWebSocket 2017-08-09 07:48:09 -07:00
polyfills Prettier React Native Libraries 2018-05-10 19:10:38 -07:00
react-native Prettier React Native Libraries 2018-05-10 19:10:38 -07:00
vendor Prettier React Native Libraries 2018-05-10 19:10:38 -07:00
.npmignore npmignore: ignore tests and fixtures 2018-02-27 08:42:14 -08:00
Promise.js Prettier React Native Libraries 2018-05-10 19:10:38 -07:00
UTFSequence.js Remove @providesModule from all modules 2018-04-25 07:37:10 -07:00
promiseRejectionIsError.js Prettier React Native Libraries 2018-05-10 19:10:38 -07:00