Enable scroll in the container based on content size
First, install the library in your project by npm:
$ npm install native-smart-scroll-container
Or Yarn:
$ yarn add native-smart-scroll-container
Connect 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 App
This project is licensed under the MIT License ยฉ 2020-present Jakub Biesiada