Skip to content

Commit

Permalink
Pre-suppress errors in xplat ahead of 0.257.0 release
Browse files Browse the repository at this point in the history
Summary: Changelog: [Internal]

Reviewed By: panagosg7

Differential Revision: D67368232

fbshipit-source-id: 23111f62c5731b5a58e15ac8ef2dcd9ea8006573
  • Loading branch information
SamChou19815 authored and facebook-github-bot committed Dec 18, 2024
1 parent 7948044 commit f8119fc
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/react-native/Libraries/Modal/Modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,7 @@ class Modal extends React.Component<Props, State> {
<VirtualizedListContextResetter>
<ScrollView.Context.Provider value={null}>
<View
// $FlowFixMe[incompatible-type]
style={[styles.container, containerStyles]}
collapsable={false}>
{innerChildren}
Expand All @@ -353,6 +354,7 @@ const styles = StyleSheet.create({
/* $FlowFixMe[invalid-computed-prop] (>=0.111.0 site=react_native_fb) This
* comment suppresses an error found when Flow v0.111 was deployed. To see
* the error, delete this comment and run Flow. */
// $FlowFixMe[incompatible-call]
[side]: 0,
top: 0,
flex: 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ class RNTesterPlatformTestEventRecorder {
(event, eventType) =>
callback && callback(event, eventType, targetName),
);
// $FlowFixMe[incompatible-call]
const eventListenerProps = this.relevantEvents.reduce(
(acc: ViewProps, eventName) => {
const eventPropName =
Expand Down
1 change: 1 addition & 0 deletions packages/rn-tester/js/examples/FlatList/FlatList-basic.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ class FlatListExample extends React.PureComponent<Props, State> {
}

_setBooleanValue: string => boolean => void = key => value =>
// $FlowFixMe[incompatible-call]
this.setState({[key]: value});

_setIsRTL: boolean => void = value => {
Expand Down
1 change: 1 addition & 0 deletions packages/virtualized-lists/Lists/VirtualizedList.js
Original file line number Diff line number Diff line change
Expand Up @@ -1009,6 +1009,7 @@ class VirtualizedList extends StateSafePureComponent<Props, State> {
cells.push(
<View
key={`$spacer-${section.first}`}
// $FlowFixMe[incompatible-type]
style={{[spacerKey]: spacerSize}}
/>,
);
Expand Down

0 comments on commit f8119fc

Please sign in to comment.