From 5cee067c26157130a10b831de14aaa85edd7330a Mon Sep 17 00:00:00 2001 From: Julian Jorgensen Date: Thu, 27 Dec 2018 11:15:19 +0100 Subject: [PATCH] Add disabled feature as prop --- src/index.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/index.js b/src/index.js index bd08033..4919628 100644 --- a/src/index.js +++ b/src/index.js @@ -149,7 +149,7 @@ export default class ScrollHorizontal extends Component { return (
{ this.hScrollParent = r }} @@ -181,7 +181,8 @@ ScrollHorizontal.propTypes = { style: PropTypes.object, className: PropTypes.string, children: PropTypes.array.isRequired, - animValues: PropTypes.number + animValues: PropTypes.number, + disabled: PropTypes.bool } ScrollHorizontal.defaultProps = { @@ -190,5 +191,6 @@ ScrollHorizontal.defaultProps = { config: null, style: { width: `100%`, height: `100%` }, className: null, - animValues: null + animValues: null, + disabled: false }