Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(SvgCssUri): support rendering fallback instead of crashing the app when loading invalid content from remote svg file #2196

Conversation

quangkcao
Copy link
Contributor

@quangkcao quangkcao commented Dec 18, 2023

Summary

This crash issue still happening for SvgCssUri component
#1760

Apply similar fix #2071
specifically for SvgCSSUri component to prevent crashes due to invalid svg content

  • What issues does the pull request solve? Please tag them so that they will get automatically closed once the PR is merged
    -> When loading invalid svg uri with SvgCSSUri, the app crashes crashes. For example the content returning html content instead of valid svg content.

  • How did you implement the solution?
    -> Passing the fallback prop to SvgCss where will be render when error being captured

  • What areas of the library does it impact?
    SvgCss and SvgUriCss

Test Plan

Tested manually:

Simulator.Screen.Recording.-.iPhone.14.Pro.Max.-.2023-12-18.at.15.06.26.mp4

Compatibility

OS Implemented
iOS
Android

Checklist

  • I have tested this on a device and a simulator
  • I added documentation in README.md
  • I updated the typed files (typescript)
  • I added a test for the API in the __tests__ folder

@quangkcao quangkcao force-pushed the bugfix/SvgCSSUri-fallback-instead-crash-when-invalid-svg-content branch from a0c2009 to ebf8260 Compare December 18, 2023 23:53
@quangkcao quangkcao marked this pull request as ready for review December 19, 2023 00:01
@quangkcao quangkcao changed the title fix(SvgCSSUri): support rendering fallback or crashing the app when loading invalid content from remote svg file fix(SvgCSSUri): support rendering fallback instead of crashing the app when loading invalid content from remote svg file Dec 19, 2023
@quangkcao quangkcao changed the title fix(SvgCSSUri): support rendering fallback instead of crashing the app when loading invalid content from remote svg file fix(SvgCssUri): support rendering fallback instead of crashing the app when loading invalid content from remote svg file Dec 19, 2023
Copy link
Member

@WoLewicki WoLewicki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀 Thanks for your contribution!

@WoLewicki WoLewicki merged commit ff18553 into software-mansion:main Jan 3, 2024
1 check passed
github-merge-queue bot referenced this pull request in valora-inc/wallet Apr 30, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[react-native-svg](https://github.com/react-native-community/react-native-svg)
| [`^13.14.0` ->
`^15.2.0`](https://renovatebot.com/diffs/npm/react-native-svg/13.14.0/15.2.0)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/react-native-svg/15.2.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/react-native-svg/15.2.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/react-native-svg/13.14.0/15.2.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/react-native-svg/13.14.0/15.2.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>react-native-community/react-native-svg
(react-native-svg)</summary>

###
[`v15.2.0`](https://github.com/software-mansion/react-native-svg/releases/tag/v15.2.0)

[Compare
Source](https://github.com/react-native-community/react-native-svg/compare/v15.1.0...v15.2.0)

Minor release adding support for RN 0.74 on New Architecture and
introducing some bug fixes. Thank you for your contributions!

#### What's Changed

- feat: add needed changes for RN 0.74 by
[@&#8203;WoLewicki](https://github.com/WoLewicki) in
[https://github.com/software-mansion/react-native-svg/pull/2231](https://github.com/software-mansion/react-native-svg/pull/2231)
- Fix CMakeLists for Android by
[@&#8203;tjzel](https://github.com/tjzel) in
[https://github.com/software-mansion/react-native-svg/pull/2249](https://github.com/software-mansion/react-native-svg/pull/2249)
- Adds support to compile react-native-svg against WinAppSDK by
[@&#8203;rozele](https://github.com/rozele) in
[https://github.com/software-mansion/react-native-svg/pull/2255](https://github.com/software-mansion/react-native-svg/pull/2255)
- feat: bump RN to 0.74 in FabricExample and remove rea hacks by
[@&#8203;WoLewicki](https://github.com/WoLewicki) in
[https://github.com/software-mansion/react-native-svg/pull/2262](https://github.com/software-mansion/react-native-svg/pull/2262)
- feat: bump RN to 0.74 in Example by
[@&#8203;WoLewicki](https://github.com/WoLewicki) in
[https://github.com/software-mansion/react-native-svg/pull/2263](https://github.com/software-mansion/react-native-svg/pull/2263)

#### New Contributors

- [@&#8203;tjzel](https://github.com/tjzel) made their first
contribution in
[https://github.com/software-mansion/react-native-svg/pull/2249](https://github.com/software-mansion/react-native-svg/pull/2249)

**Full Changelog**:
software-mansion/react-native-svg@v15.1.0...v15.2.0

###
[`v15.1.0`](https://github.com/software-mansion/react-native-svg/releases/tag/v15.1.0)

[Compare
Source](https://github.com/react-native-community/react-native-svg/compare/v15.0.0...v15.1.0)

Minor release including proper support for `react-native-reanimated` to
the library on new architecture by using `dynamic` values for codegen.

##### What's Changed

- feat: use dynamics instead of strings for props that can be either
string or number by [@&#8203;WoLewicki](https://github.com/WoLewicki)
in
[https://github.com/software-mansion/react-native-svg/pull/2238](https://github.com/software-mansion/react-native-svg/pull/2238)

**Full Changelog**:
software-mansion/react-native-svg@v15.0.0...v15.1.0

###
[`v15.0.0`](https://github.com/software-mansion/react-native-svg/releases/tag/v15.0.0)

[Compare
Source](https://github.com/react-native-community/react-native-svg/compare/v14.1.0...v15.0.0)

Major release introducing support for visionOS 🎉, some bug fixes
and a BREAKING CHANGE due to
[https://github.com/software-mansion/react-native-svg/pull/2232](https://github.com/software-mansion/react-native-svg/pull/2232).
If your app already supports `iOS` >= `12.4` then you can safely upgrade
the version, otherwise, you have to bump it first.

#### What's Changed

- feat: add visionOS support by
[@&#8203;okwasniewski](https://github.com/okwasniewski) in
[https://github.com/software-mansion/react-native-svg/pull/2190](https://github.com/software-mansion/react-native-svg/pull/2190)
- fix: Correct types for transformsArrayToProps by
[@&#8203;crazyfraggle](https://github.com/crazyfraggle) in
[https://github.com/software-mansion/react-native-svg/pull/2193](https://github.com/software-mansion/react-native-svg/pull/2193)
- chore: bump examples to 0.73.1 by
[@&#8203;WoLewicki](https://github.com/WoLewicki) in
[https://github.com/software-mansion/react-native-svg/pull/2201](https://github.com/software-mansion/react-native-svg/pull/2201)
- Fix type exports and enable `isolatedModules` setting to catch it in
`tsc` by [@&#8203;renchap](https://github.com/renchap) in
[https://github.com/software-mansion/react-native-svg/pull/2197](https://github.com/software-mansion/react-native-svg/pull/2197)
- Fix crash when SVG is unloaded by XAML by
[@&#8203;rozele](https://github.com/rozele) in
[https://github.com/software-mansion/react-native-svg/pull/2195](https://github.com/software-mansion/react-native-svg/pull/2195)
- fix(SvgCssUri): support rendering fallback instead of crashing the app
when loading invalid content from remote svg file by
[@&#8203;quangkcao](https://github.com/quangkcao) in
[https://github.com/software-mansion/react-native-svg/pull/2196](https://github.com/software-mansion/react-native-svg/pull/2196)
- fix: Ensure RNSVG.dll is built with proper publisher/versioning
information via new resource file. by
[@&#8203;taenri](https://github.com/taenri) in
[https://github.com/software-mansion/react-native-svg/pull/2191](https://github.com/software-mansion/react-native-svg/pull/2191)
- Update ios-build-test.yml by
[@&#8203;WoLewicki](https://github.com/WoLewicki) in
[https://github.com/software-mansion/react-native-svg/pull/2207](https://github.com/software-mansion/react-native-svg/pull/2207)
- fix: visionOS support by
[@&#8203;tomekzaw](https://github.com/tomekzaw) in
[https://github.com/software-mansion/react-native-svg/pull/2218](https://github.com/software-mansion/react-native-svg/pull/2218)
- fixed [@&#8203;Deprecated](https://github.com/Deprecated) warning in
React Native 0.73: 'com.facebook.react.common.StandardCharsets' is
deprecated and marked for removal by
[@&#8203;coder-xiaomo](https://github.com/coder-xiaomo) in
[https://github.com/software-mansion/react-native-svg/pull/2208](https://github.com/software-mansion/react-native-svg/pull/2208)
- fix: typo on require statement (`WithLocalSvg`) by
[@&#8203;voidsatisfaction](https://github.com/voidsatisfaction) in
[https://github.com/software-mansion/react-native-svg/pull/2223](https://github.com/software-mansion/react-native-svg/pull/2223)
- fix: Add missing nan value checks for bounds size by
[@&#8203;MatiPl01](https://github.com/MatiPl01) in
[https://github.com/software-mansion/react-native-svg/pull/2220](https://github.com/software-mansion/react-native-svg/pull/2220)
- chore(deps): bump ip from 1.1.8 to 1.1.9 in /Example by
[@&#8203;dependabot](https://github.com/dependabot) in
[https://github.com/software-mansion/react-native-svg/pull/2228](https://github.com/software-mansion/react-native-svg/pull/2228)
- feat: bump minimal ios version to 12.4 by
[@&#8203;WoLewicki](https://github.com/WoLewicki) in
[https://github.com/software-mansion/react-native-svg/pull/2232](https://github.com/software-mansion/react-native-svg/pull/2232)

#### New Contributors

- [@&#8203;okwasniewski](https://github.com/okwasniewski) made their
first contribution in
[https://github.com/software-mansion/react-native-svg/pull/2190](https://github.com/software-mansion/react-native-svg/pull/2190)
- [@&#8203;crazyfraggle](https://github.com/crazyfraggle) made their
first contribution in
[https://github.com/software-mansion/react-native-svg/pull/2193](https://github.com/software-mansion/react-native-svg/pull/2193)
- [@&#8203;quangkcao](https://github.com/quangkcao) made their first
contribution in
[https://github.com/software-mansion/react-native-svg/pull/2196](https://github.com/software-mansion/react-native-svg/pull/2196)
- [@&#8203;taenri](https://github.com/taenri) made their first
contribution in
[https://github.com/software-mansion/react-native-svg/pull/2191](https://github.com/software-mansion/react-native-svg/pull/2191)
- [@&#8203;coder-xiaomo](https://github.com/coder-xiaomo) made their
first contribution in
[https://github.com/software-mansion/react-native-svg/pull/2208](https://github.com/software-mansion/react-native-svg/pull/2208)
- [@&#8203;voidsatisfaction](https://github.com/voidsatisfaction) made
their first contribution in
[https://github.com/software-mansion/react-native-svg/pull/2223](https://github.com/software-mansion/react-native-svg/pull/2223)
- [@&#8203;MatiPl01](https://github.com/MatiPl01) made their first
contribution in
[https://github.com/software-mansion/react-native-svg/pull/2220](https://github.com/software-mansion/react-native-svg/pull/2220)

**Full Changelog**:
software-mansion/react-native-svg@v14.1.0...v15.0.0

###
[`v14.1.0`](https://github.com/software-mansion/react-native-svg/releases/tag/v14.1.0)

[Compare
Source](https://github.com/react-native-community/react-native-svg/compare/v14.0.0...v14.1.0)

Minor release adding support for RN 0.73 and fixing some bugs 🎉
Thank you for all your contributions!

#### What's Changed

- fix: remove unused header causing problems by
[@&#8203;WoLewicki](https://github.com/WoLewicki) in
[https://github.com/software-mansion/react-native-svg/pull/2175](https://github.com/software-mansion/react-native-svg/pull/2175)
- fix `SvgCssUri` fallback by
[@&#8203;myou11](https://github.com/myou11) in
[https://github.com/software-mansion/react-native-svg/pull/2171](https://github.com/software-mansion/react-native-svg/pull/2171)
- Minor fix to prevent crash when Loaded fires twice by
[@&#8203;rozele](https://github.com/rozele) in
[https://github.com/software-mansion/react-native-svg/pull/2180](https://github.com/software-mansion/react-native-svg/pull/2180)
- feat: add support for RN 73 by
[@&#8203;WoLewicki](https://github.com/WoLewicki) in
[https://github.com/software-mansion/react-native-svg/pull/2181](https://github.com/software-mansion/react-native-svg/pull/2181)

#### New Contributors

- [@&#8203;myou11](https://github.com/myou11) made their first
contribution in
[https://github.com/software-mansion/react-native-svg/pull/2171](https://github.com/software-mansion/react-native-svg/pull/2171)
- [@&#8203;rozele](https://github.com/rozele) made their first
contribution in
[https://github.com/software-mansion/react-native-svg/pull/2180](https://github.com/software-mansion/react-native-svg/pull/2180)

**Full Changelog**:
software-mansion/react-native-svg@v14.0.0...v14.1.0

###
[`v14.0.0`](https://github.com/software-mansion/react-native-svg/releases/tag/v14.0.0)

[Compare
Source](https://github.com/react-native-community/react-native-svg/compare/v13.14.0...v14.0.0)

Major release introducing some minor improvements and a ***BREAKING
CHANGE***. From now on, you should import

      SvgCss,
      SvgCssUri,
      SvgWithCss,
      SvgWithCssUri,
      inlineStyles,
      LocalSvg,
      WithLocalSvg,
      loadLocalRawResource,

from `react-native-svg/css` package instead. See
[#&#8203;2168](https://github.com/react-native-community/react-native-svg/issues/2168)
for more information.

#### What's Changed

- enable buildConfig generation to better support AGP8 by
[@&#8203;pvegh](https://github.com/pvegh) in
[https://github.com/software-mansion/react-native-svg/pull/2143](https://github.com/software-mansion/react-native-svg/pull/2143)
- perf: avoid unnecessary shared_ptr copies in Fabric components by
[@&#8203;javache](https://github.com/javache) in
[https://github.com/software-mansion/react-native-svg/pull/2164](https://github.com/software-mansion/react-native-svg/pull/2164)
- fix: props are no longer unnecesarily copied in new architecture by
[@&#8203;javache](https://github.com/javache) in
[https://github.com/software-mansion/react-native-svg/pull/2163](https://github.com/software-mansion/react-native-svg/pull/2163)
- chore(deps): bump
[@&#8203;babel/traverse](https://github.com/babel/traverse) from
7.22.8 to 7.23.2 in /Example by
[@&#8203;dependabot](https://github.com/dependabot) in
[https://github.com/software-mansion/react-native-svg/pull/2158](https://github.com/software-mansion/react-native-svg/pull/2158)
- Build `renderer/components/rnsvg` with `-std=c++20` by
[@&#8203;NickGerleman](https://github.com/NickGerleman) in
[https://github.com/software-mansion/react-native-svg/pull/2141](https://github.com/software-mansion/react-native-svg/pull/2141)
- chore: bump examples to rn 0.72.6 by
[@&#8203;WoLewicki](https://github.com/WoLewicki) in
[https://github.com/software-mansion/react-native-svg/pull/2166](https://github.com/software-mansion/react-native-svg/pull/2166)
- \[Windows] Port to Direct2D to remove win2d dependency by
[@&#8203;marlenecota](https://github.com/marlenecota) in
[https://github.com/software-mansion/react-native-svg/pull/2052](https://github.com/software-mansion/react-native-svg/pull/2052)
- feat: move css to different package for size reduction by
[@&#8203;WoLewicki](https://github.com/WoLewicki) in
[https://github.com/software-mansion/react-native-svg/pull/2168](https://github.com/software-mansion/react-native-svg/pull/2168)

#### New Contributors

- [@&#8203;pvegh](https://github.com/pvegh) made their first
contribution in
[https://github.com/software-mansion/react-native-svg/pull/2143](https://github.com/software-mansion/react-native-svg/pull/2143)
- [@&#8203;javache](https://github.com/javache) made their first
contribution in
[https://github.com/software-mansion/react-native-svg/pull/2164](https://github.com/software-mansion/react-native-svg/pull/2164)
- [@&#8203;NickGerleman](https://github.com/NickGerleman) made their
first contribution in
[https://github.com/software-mansion/react-native-svg/pull/2141](https://github.com/software-mansion/react-native-svg/pull/2141)

**Full Changelog**:
software-mansion/react-native-svg@v13.14.0...v14.0.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "after 5pm,every weekend" in timezone
America/Los_Angeles, Automerge - "after 5pm,every weekend" in timezone
America/Los_Angeles.

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/valora-inc/wallet).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMjEuMiIsInVwZGF0ZWRJblZlciI6IjM3LjMyMS4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJucG0iLCJyZW5vdmF0ZSJdfQ==-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: valora-bot <valorabot@valoraapp.com>
shottah referenced this pull request in zed-io/kolektivo May 15, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[react-native-svg](https://github.com/react-native-community/react-native-svg)
| [`^13.14.0` ->
`^15.2.0`](https://renovatebot.com/diffs/npm/react-native-svg/13.14.0/15.2.0)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/react-native-svg/15.2.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/react-native-svg/15.2.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/react-native-svg/13.14.0/15.2.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/react-native-svg/13.14.0/15.2.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>react-native-community/react-native-svg
(react-native-svg)</summary>

###
[`v15.2.0`](https://github.com/software-mansion/react-native-svg/releases/tag/v15.2.0)

[Compare
Source](https://github.com/react-native-community/react-native-svg/compare/v15.1.0...v15.2.0)

Minor release adding support for RN 0.74 on New Architecture and
introducing some bug fixes. Thank you for your contributions!

#### What's Changed

- feat: add needed changes for RN 0.74 by
[@&#8203;WoLewicki](https://github.com/WoLewicki) in
[https://github.com/software-mansion/react-native-svg/pull/2231](https://github.com/software-mansion/react-native-svg/pull/2231)
- Fix CMakeLists for Android by
[@&#8203;tjzel](https://github.com/tjzel) in
[https://github.com/software-mansion/react-native-svg/pull/2249](https://github.com/software-mansion/react-native-svg/pull/2249)
- Adds support to compile react-native-svg against WinAppSDK by
[@&#8203;rozele](https://github.com/rozele) in
[https://github.com/software-mansion/react-native-svg/pull/2255](https://github.com/software-mansion/react-native-svg/pull/2255)
- feat: bump RN to 0.74 in FabricExample and remove rea hacks by
[@&#8203;WoLewicki](https://github.com/WoLewicki) in
[https://github.com/software-mansion/react-native-svg/pull/2262](https://github.com/software-mansion/react-native-svg/pull/2262)
- feat: bump RN to 0.74 in Example by
[@&#8203;WoLewicki](https://github.com/WoLewicki) in
[https://github.com/software-mansion/react-native-svg/pull/2263](https://github.com/software-mansion/react-native-svg/pull/2263)

#### New Contributors

- [@&#8203;tjzel](https://github.com/tjzel) made their first
contribution in
[https://github.com/software-mansion/react-native-svg/pull/2249](https://github.com/software-mansion/react-native-svg/pull/2249)

**Full Changelog**:
software-mansion/react-native-svg@v15.1.0...v15.2.0

###
[`v15.1.0`](https://github.com/software-mansion/react-native-svg/releases/tag/v15.1.0)

[Compare
Source](https://github.com/react-native-community/react-native-svg/compare/v15.0.0...v15.1.0)

Minor release including proper support for `react-native-reanimated` to
the library on new architecture by using `dynamic` values for codegen.

##### What's Changed

- feat: use dynamics instead of strings for props that can be either
string or number by [@&#8203;WoLewicki](https://github.com/WoLewicki)
in
[https://github.com/software-mansion/react-native-svg/pull/2238](https://github.com/software-mansion/react-native-svg/pull/2238)

**Full Changelog**:
software-mansion/react-native-svg@v15.0.0...v15.1.0

###
[`v15.0.0`](https://github.com/software-mansion/react-native-svg/releases/tag/v15.0.0)

[Compare
Source](https://github.com/react-native-community/react-native-svg/compare/v14.1.0...v15.0.0)

Major release introducing support for visionOS 🎉, some bug fixes
and a BREAKING CHANGE due to
[https://github.com/software-mansion/react-native-svg/pull/2232](https://github.com/software-mansion/react-native-svg/pull/2232).
If your app already supports `iOS` >= `12.4` then you can safely upgrade
the version, otherwise, you have to bump it first.

#### What's Changed

- feat: add visionOS support by
[@&#8203;okwasniewski](https://github.com/okwasniewski) in
[https://github.com/software-mansion/react-native-svg/pull/2190](https://github.com/software-mansion/react-native-svg/pull/2190)
- fix: Correct types for transformsArrayToProps by
[@&#8203;crazyfraggle](https://github.com/crazyfraggle) in
[https://github.com/software-mansion/react-native-svg/pull/2193](https://github.com/software-mansion/react-native-svg/pull/2193)
- chore: bump examples to 0.73.1 by
[@&#8203;WoLewicki](https://github.com/WoLewicki) in
[https://github.com/software-mansion/react-native-svg/pull/2201](https://github.com/software-mansion/react-native-svg/pull/2201)
- Fix type exports and enable `isolatedModules` setting to catch it in
`tsc` by [@&#8203;renchap](https://github.com/renchap) in
[https://github.com/software-mansion/react-native-svg/pull/2197](https://github.com/software-mansion/react-native-svg/pull/2197)
- Fix crash when SVG is unloaded by XAML by
[@&#8203;rozele](https://github.com/rozele) in
[https://github.com/software-mansion/react-native-svg/pull/2195](https://github.com/software-mansion/react-native-svg/pull/2195)
- fix(SvgCssUri): support rendering fallback instead of crashing the app
when loading invalid content from remote svg file by
[@&#8203;quangkcao](https://github.com/quangkcao) in
[https://github.com/software-mansion/react-native-svg/pull/2196](https://github.com/software-mansion/react-native-svg/pull/2196)
- fix: Ensure RNSVG.dll is built with proper publisher/versioning
information via new resource file. by
[@&#8203;taenri](https://github.com/taenri) in
[https://github.com/software-mansion/react-native-svg/pull/2191](https://github.com/software-mansion/react-native-svg/pull/2191)
- Update ios-build-test.yml by
[@&#8203;WoLewicki](https://github.com/WoLewicki) in
[https://github.com/software-mansion/react-native-svg/pull/2207](https://github.com/software-mansion/react-native-svg/pull/2207)
- fix: visionOS support by
[@&#8203;tomekzaw](https://github.com/tomekzaw) in
[https://github.com/software-mansion/react-native-svg/pull/2218](https://github.com/software-mansion/react-native-svg/pull/2218)
- fixed [@&#8203;Deprecated](https://github.com/Deprecated) warning in
React Native 0.73: 'com.facebook.react.common.StandardCharsets' is
deprecated and marked for removal by
[@&#8203;coder-xiaomo](https://github.com/coder-xiaomo) in
[https://github.com/software-mansion/react-native-svg/pull/2208](https://github.com/software-mansion/react-native-svg/pull/2208)
- fix: typo on require statement (`WithLocalSvg`) by
[@&#8203;voidsatisfaction](https://github.com/voidsatisfaction) in
[https://github.com/software-mansion/react-native-svg/pull/2223](https://github.com/software-mansion/react-native-svg/pull/2223)
- fix: Add missing nan value checks for bounds size by
[@&#8203;MatiPl01](https://github.com/MatiPl01) in
[https://github.com/software-mansion/react-native-svg/pull/2220](https://github.com/software-mansion/react-native-svg/pull/2220)
- chore(deps): bump ip from 1.1.8 to 1.1.9 in /Example by
[@&#8203;dependabot](https://github.com/dependabot) in
[https://github.com/software-mansion/react-native-svg/pull/2228](https://github.com/software-mansion/react-native-svg/pull/2228)
- feat: bump minimal ios version to 12.4 by
[@&#8203;WoLewicki](https://github.com/WoLewicki) in
[https://github.com/software-mansion/react-native-svg/pull/2232](https://github.com/software-mansion/react-native-svg/pull/2232)

#### New Contributors

- [@&#8203;okwasniewski](https://github.com/okwasniewski) made their
first contribution in
[https://github.com/software-mansion/react-native-svg/pull/2190](https://github.com/software-mansion/react-native-svg/pull/2190)
- [@&#8203;crazyfraggle](https://github.com/crazyfraggle) made their
first contribution in
[https://github.com/software-mansion/react-native-svg/pull/2193](https://github.com/software-mansion/react-native-svg/pull/2193)
- [@&#8203;quangkcao](https://github.com/quangkcao) made their first
contribution in
[https://github.com/software-mansion/react-native-svg/pull/2196](https://github.com/software-mansion/react-native-svg/pull/2196)
- [@&#8203;taenri](https://github.com/taenri) made their first
contribution in
[https://github.com/software-mansion/react-native-svg/pull/2191](https://github.com/software-mansion/react-native-svg/pull/2191)
- [@&#8203;coder-xiaomo](https://github.com/coder-xiaomo) made their
first contribution in
[https://github.com/software-mansion/react-native-svg/pull/2208](https://github.com/software-mansion/react-native-svg/pull/2208)
- [@&#8203;voidsatisfaction](https://github.com/voidsatisfaction) made
their first contribution in
[https://github.com/software-mansion/react-native-svg/pull/2223](https://github.com/software-mansion/react-native-svg/pull/2223)
- [@&#8203;MatiPl01](https://github.com/MatiPl01) made their first
contribution in
[https://github.com/software-mansion/react-native-svg/pull/2220](https://github.com/software-mansion/react-native-svg/pull/2220)

**Full Changelog**:
software-mansion/react-native-svg@v14.1.0...v15.0.0

###
[`v14.1.0`](https://github.com/software-mansion/react-native-svg/releases/tag/v14.1.0)

[Compare
Source](https://github.com/react-native-community/react-native-svg/compare/v14.0.0...v14.1.0)

Minor release adding support for RN 0.73 and fixing some bugs 🎉
Thank you for all your contributions!

#### What's Changed

- fix: remove unused header causing problems by
[@&#8203;WoLewicki](https://github.com/WoLewicki) in
[https://github.com/software-mansion/react-native-svg/pull/2175](https://github.com/software-mansion/react-native-svg/pull/2175)
- fix `SvgCssUri` fallback by
[@&#8203;myou11](https://github.com/myou11) in
[https://github.com/software-mansion/react-native-svg/pull/2171](https://github.com/software-mansion/react-native-svg/pull/2171)
- Minor fix to prevent crash when Loaded fires twice by
[@&#8203;rozele](https://github.com/rozele) in
[https://github.com/software-mansion/react-native-svg/pull/2180](https://github.com/software-mansion/react-native-svg/pull/2180)
- feat: add support for RN 73 by
[@&#8203;WoLewicki](https://github.com/WoLewicki) in
[https://github.com/software-mansion/react-native-svg/pull/2181](https://github.com/software-mansion/react-native-svg/pull/2181)

#### New Contributors

- [@&#8203;myou11](https://github.com/myou11) made their first
contribution in
[https://github.com/software-mansion/react-native-svg/pull/2171](https://github.com/software-mansion/react-native-svg/pull/2171)
- [@&#8203;rozele](https://github.com/rozele) made their first
contribution in
[https://github.com/software-mansion/react-native-svg/pull/2180](https://github.com/software-mansion/react-native-svg/pull/2180)

**Full Changelog**:
software-mansion/react-native-svg@v14.0.0...v14.1.0

###
[`v14.0.0`](https://github.com/software-mansion/react-native-svg/releases/tag/v14.0.0)

[Compare
Source](https://github.com/react-native-community/react-native-svg/compare/v13.14.0...v14.0.0)

Major release introducing some minor improvements and a ***BREAKING
CHANGE***. From now on, you should import

      SvgCss,
      SvgCssUri,
      SvgWithCss,
      SvgWithCssUri,
      inlineStyles,
      LocalSvg,
      WithLocalSvg,
      loadLocalRawResource,

from `react-native-svg/css` package instead. See
[#&#8203;2168](https://github.com/react-native-community/react-native-svg/issues/2168)
for more information.

#### What's Changed

- enable buildConfig generation to better support AGP8 by
[@&#8203;pvegh](https://github.com/pvegh) in
[https://github.com/software-mansion/react-native-svg/pull/2143](https://github.com/software-mansion/react-native-svg/pull/2143)
- perf: avoid unnecessary shared_ptr copies in Fabric components by
[@&#8203;javache](https://github.com/javache) in
[https://github.com/software-mansion/react-native-svg/pull/2164](https://github.com/software-mansion/react-native-svg/pull/2164)
- fix: props are no longer unnecesarily copied in new architecture by
[@&#8203;javache](https://github.com/javache) in
[https://github.com/software-mansion/react-native-svg/pull/2163](https://github.com/software-mansion/react-native-svg/pull/2163)
- chore(deps): bump
[@&#8203;babel/traverse](https://github.com/babel/traverse) from
7.22.8 to 7.23.2 in /Example by
[@&#8203;dependabot](https://github.com/dependabot) in
[https://github.com/software-mansion/react-native-svg/pull/2158](https://github.com/software-mansion/react-native-svg/pull/2158)
- Build `renderer/components/rnsvg` with `-std=c++20` by
[@&#8203;NickGerleman](https://github.com/NickGerleman) in
[https://github.com/software-mansion/react-native-svg/pull/2141](https://github.com/software-mansion/react-native-svg/pull/2141)
- chore: bump examples to rn 0.72.6 by
[@&#8203;WoLewicki](https://github.com/WoLewicki) in
[https://github.com/software-mansion/react-native-svg/pull/2166](https://github.com/software-mansion/react-native-svg/pull/2166)
- \[Windows] Port to Direct2D to remove win2d dependency by
[@&#8203;marlenecota](https://github.com/marlenecota) in
[https://github.com/software-mansion/react-native-svg/pull/2052](https://github.com/software-mansion/react-native-svg/pull/2052)
- feat: move css to different package for size reduction by
[@&#8203;WoLewicki](https://github.com/WoLewicki) in
[https://github.com/software-mansion/react-native-svg/pull/2168](https://github.com/software-mansion/react-native-svg/pull/2168)

#### New Contributors

- [@&#8203;pvegh](https://github.com/pvegh) made their first
contribution in
[https://github.com/software-mansion/react-native-svg/pull/2143](https://github.com/software-mansion/react-native-svg/pull/2143)
- [@&#8203;javache](https://github.com/javache) made their first
contribution in
[https://github.com/software-mansion/react-native-svg/pull/2164](https://github.com/software-mansion/react-native-svg/pull/2164)
- [@&#8203;NickGerleman](https://github.com/NickGerleman) made their
first contribution in
[https://github.com/software-mansion/react-native-svg/pull/2141](https://github.com/software-mansion/react-native-svg/pull/2141)

**Full Changelog**:
software-mansion/react-native-svg@v13.14.0...v14.0.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "after 5pm,every weekend" in timezone
America/Los_Angeles, Automerge - "after 5pm,every weekend" in timezone
America/Los_Angeles.

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/valora-inc/wallet).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMjEuMiIsInVwZGF0ZWRJblZlciI6IjM3LjMyMS4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJucG0iLCJyZW5vdmF0ZSJdfQ==-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: valora-bot <valorabot@valoraapp.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants