react-native-prototype-to-scrollview

1.1.1 • Public • Published

Installation

npm install react-native-prototype-to-scrollview

Usage

support to lib `react-native-scroll-lazy`
import PrototypeToScrollview from 'react-native-prototype-to-scrollview'
 
class App extends React.Component {
 
  render() {
    return (
      <Animated.ScrollView
                ref={ele => this._scrollResponder = ele}
                {...this.props}
            />
    );
  }
 
  getScrollResponder = () => this._scrollResponder;
 
  handleScrollTo = (x, y) => this.scrollTo(x, y)
}
 
Object.assign(App.prototype, PrototypeToScrollview);

/react-native-prototype-to-scrollview/

    Package Sidebar

    Install

    npm i react-native-prototype-to-scrollview

    Weekly Downloads

    10

    Version

    1.1.1

    License

    MIT

    Unpacked Size

    1.64 kB

    Total Files

    3

    Last publish

    Collaborators

    • tungtran.hcmus