UNPKG

@tamagui/react-native-web-lite

Version:
26 lines (20 loc) 715 B
/** * 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 { FlatList as FlatListComponent } from '../../../../FlatList'; import { createAnimatedComponent } from '../createAnimatedComponent'; /** * @see https://github.com/facebook/react-native/commit/b8c8562 */ const FlatListWithEventThrottle = React.forwardRef((props, ref) => ( <FlatListComponent scrollEventThrottle={0.0001} {...props} ref={ref} /> )); const FlatList = createAnimatedComponent(FlatListWithEventThrottle); export { FlatList } export default FlatList;