diff --git a/Libraries/Components/ScrollView/__mocks__/ScrollViewMock.js b/Libraries/Components/ScrollView/__mocks__/ScrollViewMock.js index b8e77a80770675..314b089e5674fc 100644 --- a/Libraries/Components/ScrollView/__mocks__/ScrollViewMock.js +++ b/Libraries/Components/ScrollView/__mocks__/ScrollViewMock.js @@ -7,6 +7,7 @@ * of patent rights can be found in the PATENTS file in the same directory. * * @flow + * eslint-env jest */ 'use strict'; @@ -17,7 +18,9 @@ const requireNativeComponent = require('requireNativeComponent'); const RCTScrollView = requireNativeComponent('RCTScrollView'); -class ScrollViewMock extends React.Component { +const ScrollViewComponent = jest.genMockFromModule('ScrollView'); + +class ScrollViewMock extends ScrollViewComponent { render() { return (