diff --git a/types/react-native/index.d.ts b/types/react-native/index.d.ts index 7cb8943327..e5ff751308 100644 --- a/types/react-native/index.d.ts +++ b/types/react-native/index.d.ts @@ -29,6 +29,7 @@ // Xianming Zhong // Valentyn Tolochko // Sergey Sychev +// Kelvin Chu // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 @@ -3859,7 +3860,7 @@ export interface FlatListProps extends VirtualizedListProps { * For simplicity, data is just a plain array. If you want to use something else, * like an immutable list, use the underlying VirtualizedList directly. */ - data: ReadonlyArray | null; + data: ReadonlyArray | null | undefined; /** * A marker property for telling the list to re-render (since it implements PureComponent).