/** * 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 */ 'use strict'; import * as React from 'react'; import requireNativeComponent from '../../../ReactNative/requireNativeComponent'; import type {HostComponent} from '../../../Renderer/shims/ReactNativeTypes'; const RCTRefreshControl: HostComponent = requireNativeComponent('RCTRefreshControl'); class RefreshControlMock extends React.Component<{...}> { static latestRef: ?RefreshControlMock; componentDidMount() { RefreshControlMock.latestRef = this; } render(): React.Element { return ; } } module.exports = RefreshControlMock;