From 1974626b6af069a791a6949bbcf50794aea131e0 Mon Sep 17 00:00:00 2001 From: Artur Eshenbrener Date: Wed, 25 Nov 2020 14:29:20 +0300 Subject: [PATCH] Make possible to use size in percentage Hello. It is actually works (I can specify size in percentage for react-native-svg component), but emits warning. This PR removes that warning and allows to specify icon size in percentage --- src/components/FontAwesomeIcon.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/FontAwesomeIcon.js b/src/components/FontAwesomeIcon.js index e2af2b3..ddf3db7 100644 --- a/src/components/FontAwesomeIcon.js +++ b/src/components/FontAwesomeIcon.js @@ -123,7 +123,7 @@ FontAwesomeIcon.propTypes = { width: PropTypes.number, - size: PropTypes.number, + size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]), color: PropTypes.string,