1.0.0 • Published 3 years ago

native-smart-scroll-container v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
3 years ago

Native Smart Scroll Container

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

NameTypeDefaultDescription
onSmartScrollStatusChange(isScrollEnabled: boolean) => voidundefinedCallback 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