Eliminate final few React$AbstractComponent (#47163)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/47163

In order to adopt react 19's ref-as-prop model, we need to eliminate all the places where they are treated differently. `React.AbstractComponent` is the worst example of this, and we need to eliminate it.

This diff replaces final few in libdefs.

Changelog: [internal]

Reviewed By: alexmckenley

Differential Revision: D64776942

fbshipit-source-id: 5e96c6d4fecb1b6cf539a00aecb10b9b35fc140b
This commit is contained in:
Sam Zhou authored and Facebook GitHub Bot committed 2024-10-22 16:10:54 -07:00
1 parent 7715a95895
commit aadb1d9eb1
2 files changed
+7 -6

No files matched your search

@@ -61,7 +61,7 @@ const renderSectionHeader = ({section}: {section: any, ...}) => (
</RNTesterThemeContext.Consumer>
);
const RNTesterModuleList: React.ComponentType<any> = React.memo(
const RNTesterModuleList: React.ComponentType<any> = React.memo<any>(
({sections, handleModuleCardPress}) => {
const filter = ({example, filterRegex, category}: any) =>
filterRegex.test(example.module.title) &&
@@ -29,11 +29,12 @@ function Item(props: {data: ItemDataType}): React.Node {
);
}
interface ItemListProps {
data: ItemDataType[];
useFlatList?: boolean;
onScroll?: (evt: ScrollEvent) => void;
}
type ItemListProps = $ReadOnly<{
data: ItemDataType[],
useFlatList?: boolean,
onScroll?: (evt: ScrollEvent) => void,
...
}>;
function renderItem({item}: {item: ItemDataType, ...}): React.MixedElement {
return <Item data={item} />;