Skip to content

native-ly/native-smart-scroll-container

Repository files navigation

NPM version NPM downloads NPM license run in expo snack Codecov Travis Bundle size

About

Enable scroll in the container based on content size

How to Install

First, install the library in your project by npm:

$ npm install native-smart-scroll-container

Or Yarn:

$ yarn add native-smart-scroll-container

Getting Started

Connect the library with the project using ES6 import:

import SmartScrollContainer from 'native-smart-scroll-container'

Options

Component extends ScrollViewProps

Name Type Default Description
onSmartScrollStatusChange (isScrollEnabled: boolean) => void undefined Callback on smart scroll status change

Example

import React from 'react'
import SmartScrollContainer from 'native-smart-scroll-container'

const App = () => {
  return (
    <SmartScrollContainer>
      {/* React Native components & content here... */}
    </SmartScrollContainer>
  )
}

export default App

License

This project is licensed under the MIT License © 2020-present Jakub Biesiada