Skip to content

Commit 1426c31

Browse files
DevmateXplatFlowFixMeFBFoundation Botfacebook-github-bot
authored andcommitted
xplat/js/tools/flow-schema/schema/getSchemasForFiles.js
Reviewed By: christophpurrer Differential Revision: D123262842
1 parent 024b474 commit 1426c31

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎packages/virtualized-lists/Lists/VirtualizedList.js‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -450,8 +450,9 @@ class VirtualizedList extends StateSafePureComponent<
450450
}
451451

452452
if (__DEV__ && !this._hasWarned.flexWrap) {
453-
// $FlowFixMe[underconstrained-implicit-instantiation]
454-
const flatStyles = StyleSheet.flatten(this.props.contentContainerStyle);
453+
const flatStyles = StyleSheet.flatten<StyleProp<ViewStyle>>(
454+
this.props.contentContainerStyle,
455+
);
455456
if (flatStyles != null && flatStyles.flexWrap === 'wrap') {
456457
console.warn(
457458
'`flexWrap: `wrap`` is not supported with the `VirtualizedList` components.' +

0 commit comments

Comments
 (0)