react-native-macos 0.66.60 → 0.66.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/Libraries/Lists/FlatList.js +13 -0
- package/Libraries/Lists/VirtualizedList.js +4 -0
- package/React/Base/RCTVersion.m +1 -1
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
- package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
- package/package.json +1 -1
- package/template/package.json +1 -1
|
@@ -369,6 +369,19 @@ class FlatList<ItemT> extends React.PureComponent<Props<ItemT>, void> {
|
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
371
|
|
|
372
|
+
// [TODO(macOS GH#750)
|
|
373
|
+
/**
|
|
374
|
+
* Move selection to the specified index
|
|
375
|
+
*
|
|
376
|
+
* @platform macos
|
|
377
|
+
*/
|
|
378
|
+
selectRowAtIndex(index: number) {
|
|
379
|
+
if (this._listRef) {
|
|
380
|
+
this._listRef.selectRowAtIndex(index);
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
// ]TODO(macOS GH#750)
|
|
384
|
+
|
|
372
385
|
/**
|
|
373
386
|
* Provides a handle to the underlying scroll responder.
|
|
374
387
|
*/
|
|
@@ -592,6 +592,10 @@ class VirtualizedList extends React.PureComponent<Props, State> {
|
|
|
592
592
|
this.scrollToOffset({offset: newOffset});
|
|
593
593
|
}
|
|
594
594
|
}
|
|
595
|
+
|
|
596
|
+
selectRowAtIndex(rowIndex: number) {
|
|
597
|
+
this._selectRowAtIndex(rowIndex);
|
|
598
|
+
}
|
|
595
599
|
// ]TODO(macOS GH#774)
|
|
596
600
|
|
|
597
601
|
recordInteraction() {
|
package/React/Base/RCTVersion.m
CHANGED
package/package.json
CHANGED