From fb30b84a4c903726cf9b1b168944fd4c1228ffdb Mon Sep 17 00:00:00 2001 From: fabriziobertoglio1987 Date: Mon, 14 Mar 2022 11:58:36 +0800 Subject: [PATCH] Fix failure is caused by the missing prop type accessibilityCollectionItem Fixing https://github.com/fabriziobertoglio1987/react-native-notes/issues/6#issuecomment-1064998378 Reintroducing https://github.com/facebook/react-native/commit/32676ebe5f7555809c9d3e51efaff73ee287f5bd --- Libraries/Components/View/ViewPropTypes.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Libraries/Components/View/ViewPropTypes.js b/Libraries/Components/View/ViewPropTypes.js index b151095d696f95..be09897c7ad80e 100644 --- a/Libraries/Components/View/ViewPropTypes.js +++ b/Libraries/Components/View/ViewPropTypes.js @@ -441,6 +441,22 @@ export type ViewProps = $ReadOnly<{| */ accessibilityActions?: ?$ReadOnlyArray, + /** + * Prop used internally to announce with TalkBack rows and columns of a FlatList + * See https://bit.ly/3viYSh8 + * + * @platform android + * + */ + accessibilityCollectionItem?: ?{ + rowIndex: number, + rowSpan: number, + columnIndex: number, + columnSpan: number, + heading: boolean, + itemIndex: number, + }, + /** * Specifies the nativeID of the associated label text. When the assistive technology focuses on the component with this props, the text is read aloud. *