diff --git a/packages/rn-tester/js/components/RNTesterModuleList.js b/packages/rn-tester/js/components/RNTesterModuleList.js index 57aa08ba349..699d9c8e7ff 100644 --- a/packages/rn-tester/js/components/RNTesterModuleList.js +++ b/packages/rn-tester/js/components/RNTesterModuleList.js @@ -61,7 +61,7 @@ const renderSectionHeader = ({section}: {section: any, ...}) => ( ); -const RNTesterModuleList: React.ComponentType = React.memo( +const RNTesterModuleList: React.ComponentType = React.memo( ({sections, handleModuleCardPress}) => { const filter = ({example, filterRegex, category}: any) => filterRegex.test(example.module.title) && diff --git a/packages/rn-tester/js/examples/Performance/components/ItemList.js b/packages/rn-tester/js/examples/Performance/components/ItemList.js index d28255d5bc3..600311b2897 100644 --- a/packages/rn-tester/js/examples/Performance/components/ItemList.js +++ b/packages/rn-tester/js/examples/Performance/components/ItemList.js @@ -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 ;