use unknown in Flatlist setNativeProps type for typescript >= 3.0 (#46773)

Summary:
While digging through the types I came accross this TODO. Now that react-native uses version 5 of TS this can be updated

## Changelog:

[General] [Added] - Updated FlatList setNativeProps type

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

Reviewed By: NickGerleman

Differential Revision: D63765333

Pulled By: cipolleschi

fbshipit-source-id: ad612205d168cd90f270da72092f8ce67f5038c4
This commit is contained in:
JDMathew
2024-10-03 09:25:38 -07:00
committed by Facebook GitHub Bot
parent d3c7469d8c
commit b0ac99b477
+1 -2
View File
@@ -235,8 +235,7 @@ export abstract class FlatListComponent<
getScrollableNode: () => any;
// TODO: use `unknown` instead of `any` for Typescript >= 3.0
setNativeProps: (props: {[key: string]: any}) => void;
setNativeProps: (props: {[key: string]: unknown}) => void;
}
export class FlatList<ItemT = any> extends FlatListComponent<