Skip to content

Commit

Permalink
Release 0.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
robmadole committed May 23, 2024
1 parent 9c3dd81 commit 06ae6c1
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p

---

## [0.3.2](https://github.com/FortAwesome/react-native-fontawesome/releases/tag/0.3.2) - 2024-05-23

### Fixed

- Props with nullable/undefined values no longer throw an error

---

## [0.3.1](https://github.com/FortAwesome/react-native-fontawesome/releases/tag/0.3.1) - 2024-05-16

### Changed
Expand Down
7 changes: 4 additions & 3 deletions dist/components/FontAwesomeIcon.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ function FontAwesomeIcon(props) {

var _abstract = renderedIcon["abstract"]; // This is the color that will be passed to the "fill" prop of the Svg element

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)
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)
// `null` value will result in using the primary color, at 40% opacity

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
Expand All @@ -118,8 +118,9 @@ function FontAwesomeIcon(props) {
// or resolved in other ways, to avoid ambiguity as to which inputs cause which outputs in the underlying rendering process.
// In other words, we don't want color (for example) to be specified via two different inputs.

var styleColor = style.color,
modifiedStyle = _objectWithoutProperties(style, _excluded);
var _ref2 = style || {},
styleColor = _ref2.color,
modifiedStyle = _objectWithoutProperties(_ref2, _excluded);

var resolvedHeight, resolvedWidth;

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fortawesome/react-native-fontawesome",
"version": "0.3.1",
"version": "0.3.2",
"description": "Official React Native component for Font Awesome",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 06ae6c1

Please sign in to comment.