From 3e2403327c0878037243eb5850b306c1f1fed2d5 Mon Sep 17 00:00:00 2001 From: Daniel Hopkins <702646+drhops@users.noreply.github.com> Date: Mon, 27 Jul 2026 11:15:28 -0700 Subject: [PATCH] Add missing strictMode prop to FlatList TypeScript types (#57674) Summary: FlatList's `strictMode` prop is implemented in the component and declared in the Flow types (OptionalFlatListProps in FlatList.js), but missing from the shipped TypeScript definitions. TS users can't set it on without augmenting the module themselves. This adds `strictMode?: boolean` to the TypeScript FlatListProps, matching the Flow declaration. Types-only, no runtime change. ## Changelog: [GENERAL] [ADDED] - Add missing strictMode prop to FlatList TypeScript types Pull Request resolved: https://github.com/react/react-native/pull/57674 Test Plan: Types-only change: - Before, `` errored `(Property 'strictMode' does not exist);` - After, it type-checks. Matches the Flow prop and the runtime use in `render(): const renderer = strictMode ? this._memoizedRenderer : this._renderer;` Reviewed By: cortinico Differential Revision: D113631325 Pulled By: Abbondanzo fbshipit-source-id: 84866649daec3385b564e4c13f139aea0a787b37 --- packages/react-native/Libraries/Lists/FlatList.d.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/react-native/Libraries/Lists/FlatList.d.ts b/packages/react-native/Libraries/Lists/FlatList.d.ts index 22722018281..0914329f783 100644 --- a/packages/react-native/Libraries/Lists/FlatList.d.ts +++ b/packages/react-native/Libraries/Lists/FlatList.d.ts @@ -161,6 +161,11 @@ export interface FlatListProps extends VirtualizedListProps { * @platform android */ fadingEdgeLength?: number | {start: number; end: number} | undefined; + + /** + * Enable an optimization to memoize the item renderer to prevent unnecessary rerenders. + */ + strictMode?: boolean | undefined; } export abstract class FlatListComponent<