UNPKG

react-native-ui-lib

Version:

[![SWUbanner](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner-direct.svg)](https://stand-with-ukraine.pp.ua)

14 lines (13 loc) 567 B
import React from 'react'; import { LayoutChangeEvent } from 'react-native'; type ScrollEnablerProps = { onContentSizeChange: (contentWidth: number, contentHeight: number) => void; onLayout: (event: LayoutChangeEvent) => void; scrollEnabled: boolean; }; export type WithScrollEnablerProps = { scrollEnablerProps: ScrollEnablerProps; ref?: any; }; declare function withScrollEnabler<PROPS, STATICS = {}>(WrappedComponent: React.ComponentType<PROPS & WithScrollEnablerProps>): React.ComponentType<PROPS> & STATICS; export default withScrollEnabler;