Skip to content

Commit 53863c7

Browse files
committed
Fix lint / flow issues
1 parent 375109e commit 53863c7

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Libraries/Lists/VirtualizedList.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ class VirtualizedList extends React.PureComponent<Props, State> {
595595

596596
// [macOS
597597
ensureItemAtIndexIsVisible(rowIndex: number) {
598-
const frame = this._getFrameMetricsApprox(rowIndex);
598+
const frame = this.__getFrameMetricsApprox(rowIndex);
599599
const visTop = this._scrollMetrics.offset;
600600
const visLen = this._scrollMetrics.visibleLength;
601601
const visEnd = visTop + visLen;

Libraries/NativeComponent/PlatformBaseViewConfig.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,7 @@ const PlatformBaseViewConfig: PartialViewConfigWithoutName =
376376
}),
377377
// macOS]
378378
},
379+
// $FlowFixMe: Flow doesn't like these nested spreads // [macOS]
379380
validAttributes: {
380381
// View Props
381382
accessible: true,
@@ -501,6 +502,7 @@ const PlatformBaseViewConfig: PartialViewConfigWithoutName =
501502
style: ReactNativeStyleAttributes,
502503

503504
// [macOS
505+
// $FlowFixMe: Flow doesn't like these nested spreads
504506
...(Platform.OS === 'macos' && {
505507
acceptsFirstMouse: true,
506508
accessibilityTraits: true,
@@ -513,6 +515,7 @@ const PlatformBaseViewConfig: PartialViewConfigWithoutName =
513515
validKeysUp: true,
514516
}),
515517
// macOS]
518+
// $FlowFixMe: Flow doesn't like these nested spreads // [macOS]
516519
...ConditionallyIgnoredEventHandlers({
517520
onLayout: true,
518521
onMagicTap: true,
@@ -542,6 +545,7 @@ const PlatformBaseViewConfig: PartialViewConfigWithoutName =
542545
onTouchCancel: true,
543546

544547
// [macOS
548+
// $FlowFixMe: Flow doesn't like these nested spreads
545549
...(Platform.OS === 'macos' && {
546550
onBlur: true,
547551
onClick: true,

0 commit comments

Comments
 (0)