From 5da11947ec8edaecd762a2ac324a7d81ae2e9b2b Mon Sep 17 00:00:00 2001 From: Kyle Roach Date: Thu, 1 Jun 2017 01:10:16 -0400 Subject: [PATCH] [react-native] Added keyboardShouldPersistTaps prop to FlatList (#16818) --- types/react-native/index.d.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/types/react-native/index.d.ts b/types/react-native/index.d.ts index 2e22ad489b..8f0af54667 100644 --- a/types/react-native/index.d.ts +++ b/types/react-native/index.d.ts @@ -3450,6 +3450,14 @@ export interface FlatListProperties extends ScrollViewProperties { */ columnWrapperStyle?: ViewStyle + /** + * When false tapping outside of the focused text input when the keyboard + * is up dismisses the keyboard. When true the scroll view will not catch + * taps and the keyboard will not dismiss automatically. The default value + * is false. + */ + keyboardShouldPersistTaps?: boolean | 'always' | 'never' | 'handled' + /** * For simplicity, data is just a plain array. If you want to use something else, * like an immutable list, use the underlying VirtualizedList directly.