@tamagui/react-native-web-lite
Version:
React Native for Web
30 lines (26 loc) • 720 B
JavaScript
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*
* @format
*/
import * as React from 'react'
import ScrollView from '../../../../ScrollView/index'
import createAnimatedComponent from '../createAnimatedComponent'
/**
* @see https://github.com/facebook/react-native/commit/b8c8562
*/
var ScrollViewWithEventThrottle = /*#__PURE__*/ React.forwardRef((props, ref) =>
/*#__PURE__*/ React.createElement(
ScrollView,
{
scrollEventThrottle: 0.0001,
...props,
ref: ref,
}
)
)
export default createAnimatedComponent(ScrollViewWithEventThrottle)