@fortawesome/react-native-fontawesome 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -109,7 +109,7 @@ function FontAwesomeIcon(props) {
|
|
|
109
109
|
|
|
110
110
|
var _abstract = renderedIcon["abstract"]; // This is the color that will be passed to the "fill" prop of the Svg element
|
|
111
111
|
|
|
112
|
-
var color = _props.color || style.color || DEFAULT_COLOR; // This is the color that will be passed to the "fill" prop of the secondary Path element child (in Duotone Icons)
|
|
112
|
+
var color = _props.color || (style || {}).color || DEFAULT_COLOR; // This is the color that will be passed to the "fill" prop of the secondary Path element child (in Duotone Icons)
|
|
113
113
|
// `null` value will result in using the primary color, at 40% opacity
|
|
114
114
|
|
|
115
115
|
var secondaryColor = _props.secondaryColor || color; // Secondary layer opacity should default to 0.4, unless a specific opacity value or a specific secondary color was given
|
|
@@ -118,8 +118,9 @@ function FontAwesomeIcon(props) {
|
|
|
118
118
|
// or resolved in other ways, to avoid ambiguity as to which inputs cause which outputs in the underlying rendering process.
|
|
119
119
|
// In other words, we don't want color (for example) to be specified via two different inputs.
|
|
120
120
|
|
|
121
|
-
var
|
|
122
|
-
|
|
121
|
+
var _ref2 = style || {},
|
|
122
|
+
styleColor = _ref2.color,
|
|
123
|
+
modifiedStyle = _objectWithoutProperties(_ref2, _excluded);
|
|
123
124
|
|
|
124
125
|
var resolvedHeight, resolvedWidth;
|
|
125
126
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fortawesome/react-native-fontawesome",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "Official React Native component for Font Awesome",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"eslint-plugin-react": "^7.30.0",
|
|
54
54
|
"jest": "^28.1.0",
|
|
55
55
|
"metro-react-native-babel-preset": "^0.57.0",
|
|
56
|
-
"react": "^17",
|
|
56
|
+
"react": "^17 || ^18",
|
|
57
57
|
"react-native": "^0.68.0",
|
|
58
58
|
"react-native-svg": "^12.3.0",
|
|
59
59
|
"react-test-renderer": "^17"
|