Enable scroll in the container based on content size
First, install the library in your project by npm:
$ npm install native-smart-scroll-containerOr Yarn:
$ yarn add native-smart-scroll-containerConnect the library with the project using ES6 import:
import SmartScrollContainer from 'native-smart-scroll-container'Component extends ScrollViewProps
| Name | Type | Default | Description |
|---|---|---|---|
| onSmartScrollStatusChange | (isScrollEnabled: boolean) => void | undefined | Callback on smart scroll status change |
import React from 'react' import SmartScrollContainer from 'native-smart-scroll-container' const App = () => { return ( <SmartScrollContainer> {/* React Native components & content here... */} </SmartScrollContainer> ) } export default AppThis project is licensed under the MIT License Β© 2020-present Jakub Biesiada