From 962a56cda38af7c24999493bcb1210966e03f1ba Mon Sep 17 00:00:00 2001 From: Youngrok Kim Date: Wed, 23 Sep 2020 16:25:06 +0900 Subject: [PATCH] Fix propTypes --- src/FitText.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FitText.js b/src/FitText.js index a708344..19e8fe6 100644 --- a/src/FitText.js +++ b/src/FitText.js @@ -114,7 +114,7 @@ FitText.propTypes = { children: PropTypes.oneOfType([PropTypes.element, PropTypes.string]), compressor: PropTypes.number, debounce: PropTypes.number, - defaultFontSize: PropTypes.string, + defaultFontSize: PropTypes.oneOfType([PropTypes.number, PropTypes.string]), minFontSize: PropTypes.number, maxFontSize: PropTypes.number, parent: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),