diff --git a/Libraries/Components/View/View.js b/Libraries/Components/View/View.js index 04c7bebb15eed4..787551e8d3dccb 100644 --- a/Libraries/Components/View/View.js +++ b/Libraries/Components/View/View.js @@ -104,4 +104,4 @@ if (__DEV__) { } // No one should depend on the DEV-mode createClass View wrapper. -module.exports = ((ViewToExport: any): typeof RCTView); +module.exports = ((ViewToExport: any): typeof View); diff --git a/Libraries/Lists/VirtualizedList.js b/Libraries/Lists/VirtualizedList.js index 53475be0966668..58fe055a373cde 100644 --- a/Libraries/Lists/VirtualizedList.js +++ b/Libraries/Lists/VirtualizedList.js @@ -1175,11 +1175,11 @@ class VirtualizedList extends React.PureComponent { ); } - _selectLength(metrics: {height: number, width: number}): number { + _selectLength(metrics: $ReadOnly<{height: number, width: number}>): number { return !this.props.horizontal ? metrics.height : metrics.width; } - _selectOffset(metrics: {x: number, y: number}): number { + _selectOffset(metrics: $ReadOnly<{x: number, y: number}>): number { return !this.props.horizontal ? metrics.y : metrics.x; }