/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format * @flow strict-local */ /* eslint-env jest */ 'use strict'; const React = require('React'); const View = require('View'); const requireNativeComponent = require('requireNativeComponent'); const RCTScrollView = requireNativeComponent('RCTScrollView'); const ScrollViewComponent = jest.genMockFromModule('ScrollView'); class ScrollViewMock extends ScrollViewComponent { render() { return ( {this.props.refreshControl} {this.props.children} ); } } module.exports = ScrollViewMock;