From 0ff0bb5937eccd5cfc5f59ed181f137fe9ad7cda Mon Sep 17 00:00:00 2001 From: Lucas Freitas Date: Tue, 23 Apr 2019 15:02:41 +0200 Subject: [PATCH] Adds key to props so the library can be tested with snapshots. --- index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 86db161..278a9f9 100644 --- a/index.js +++ b/index.js @@ -82,7 +82,8 @@ export default class Spinner extends React.PureComponent { visible: PropTypes.bool, indicatorStyle: PropTypes.object, customIndicator: PropTypes.element, - children: PropTypes.element + children: PropTypes.element, + spinnerKey: PropTypes.string }; static defaultProps = { @@ -140,7 +141,7 @@ export default class Spinner extends React.PureComponent { const spinner = ( {this.props.children ? this.props.children