UNPKG

react-native-ui-lib

Version:

<p align="center"> <img src="https://user-images.githubusercontent.com/1780255/105469025-56759000-5ca0-11eb-993d-3568c1fd54f4.png" height="250px" style="display:block"/> </p> <p align="center">UI Toolset & Components Library for React Native</p> <p a

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