1.0.2 • Published 5 years ago
prototype-to-scrollview v1.0.2
Installation
npm install prototype-to-scrollview
Usage
import PrototypeToScrollview from '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);