From 6bd1c93de141a9abee5f9afefab31193798f595f Mon Sep 17 00:00:00 2001 From: bipul-yadav-1 <119504900+bipul-yadav-1@users.noreply.github.com> Date: Tue, 24 Jan 2023 03:19:37 +0530 Subject: [PATCH] Update index.js --- src/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 144a3ae..d794d08 100644 --- a/src/index.js +++ b/src/index.js @@ -4,7 +4,10 @@ import PropTypes from 'prop-types'; export default class Component extends React.PureComponent { static propTypes = { - width: PropTypes.number.isRequired, + width: PropTypes.oneOfType([ + PropTypes.string, + PropTypes.number + ]), height: PropTypes.number.isRequired, title: PropTypes.string, titleColor: PropTypes.string,