Skip to content

Image component not working when updating react-native-svg to v14 #2844

Closed
@baselshlewett

Description

Description

When using <image /> component to load svg image, it shows an error as react-native-svg had a major release with v14 where they change the way imports are handled

Related to

  • Components
  • Demo
  • Docs
  • Typings

Steps to reproduce

  1. install react-native-ui-lib
  2. install react-native-svg@14.0.0

Expected behavior

<Image /> component to behave correctly when loading svg images.

Actual behavior

Error is thrown

More Info

Code snippet

<Image source={{uri: `${SvgImageUrl}` }} />

Environment

  • React Native version: 0.72.7
  • React Native UI Lib version: 7.12.0
  • React Native Svg version: 14.1.0

Affected platforms

  • Android
  • iOS
  • Web

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buga bug in one of the componentswontfix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions