Skip to content

Commit

Permalink
Suppress private property accesses
Browse files Browse the repository at this point in the history
Summary: Changelog: [Internal]

Reviewed By: rijn

Differential Revision: D18055795

fbshipit-source-id: c48e1b7c14dc052b9cebc48037ac745dd2890969
  • Loading branch information
panagosg7 authored and facebook-github-bot committed Oct 22, 2019
1 parent 229fa32 commit 94845b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Libraries/Components/Keyboard/__tests__/Keyboard-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ describe('Keyboard', () => {

// $FlowFixMe
expect(Keyboard._subscriber).toBe(KeyboardEventEmitter._subscriber);
// $FlowFixMe Cannot access private property
expect(Keyboard._nativeModule).toBe(KeyboardEventEmitter._nativeModule);
});

Expand Down
1 change: 1 addition & 0 deletions Libraries/Lists/VirtualizedSectionList.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
);
Expand Down

0 comments on commit 94845b5

Please sign in to comment.