From 94845b57834b8d73c0abb5c12319c3566f1ce1b7 Mon Sep 17 00:00:00 2001 From: Panagiotis Vekris Date: Tue, 22 Oct 2019 16:47:32 -0700 Subject: [PATCH] Suppress private property accesses Summary: Changelog: [Internal] Reviewed By: rijn Differential Revision: D18055795 fbshipit-source-id: c48e1b7c14dc052b9cebc48037ac745dd2890969 --- Libraries/Components/Keyboard/__tests__/Keyboard-test.js | 1 + Libraries/Lists/VirtualizedSectionList.js | 1 + 2 files changed, 2 insertions(+) diff --git a/Libraries/Components/Keyboard/__tests__/Keyboard-test.js b/Libraries/Components/Keyboard/__tests__/Keyboard-test.js index 3a2385ff3cd87d..8109589853aca5 100644 --- a/Libraries/Components/Keyboard/__tests__/Keyboard-test.js +++ b/Libraries/Components/Keyboard/__tests__/Keyboard-test.js @@ -31,6 +31,7 @@ describe('Keyboard', () => { // $FlowFixMe expect(Keyboard._subscriber).toBe(KeyboardEventEmitter._subscriber); + // $FlowFixMe Cannot access private property expect(Keyboard._nativeModule).toBe(KeyboardEventEmitter._nativeModule); }); diff --git a/Libraries/Lists/VirtualizedSectionList.js b/Libraries/Lists/VirtualizedSectionList.js index c903663757c997..aaeda79f4df5fc 100644 --- a/Libraries/Lists/VirtualizedSectionList.js +++ b/Libraries/Lists/VirtualizedSectionList.js @@ -140,6 +140,7 @@ class VirtualizedSectionList< } let viewOffset = params.viewOffset || 0; if (params.itemIndex > 0 && this.props.stickySectionHeadersEnabled) { + // $FlowFixMe Cannot access private property const frame = this._listRef._getFrameMetricsApprox( index - params.itemIndex, );