Skip to content

React Native Svg implementing issue #53000

Description

@0AlmightyCoder

Description

I'm trying to implement svg icons in my react native app on android and i add all required libraries but svg icons not implemented successfully in react-native android app. I received error like Can't find ViewManager 'RNSVGPath' nor 'RCTRNSVGPath' in ViewManagerRegistery.

Image

react-native version: 0.80
react-native-community/cli: 19.0.0

following svg guide link: https://github.com/kristerkari/react-native-svg-transformer
i follow each every step before Usage with Jest

Steps to reproduce

Create react native app using this command: npx @react-native-community/cli@latest init BlogMobileApp
add following dependencies:
react-native-svg. version: react-native-svg: ^15.12.1
react-native-svg-transformer. version: react-native-svg-transformer: ^1.5.1

React Native Version

0.80.1

Affected Platforms

Runtime - Android

Output of npx @react-native-community/cli info

OS: Windows 11 10.0.22000
  CPU: (4) x64 11th Gen Intel(R) Core(TM) i3-1115G4 @ 3.00GHz
  Memory: 982.30 MB / 7.70 GB
Binaries:
  Node:
    version: 22.14.0
    path: C:\Program Files\nodejs\node.EXE
  Yarn: Not Found
  npm:
    version: 10.9.2
    path: C:\Program Files\nodejs\npm.CMD
  Watchman: Not Found
SDKs:
  Android SDK:
    API Levels:
      - "34"
      - "35"
    Build Tools:
      - 34.0.0
      - 35.0.0
      - 35.0.1
      - 36.0.0
    Android NDK: Not Found
  Windows SDK:
    AllowDevelopmentWithoutDevLicense: Disabled
IDEs:
  Android Studio: AI-242.23339.11.2421.12483815
  Visual Studio: Not Found
Languages:
  Java: 21.0.5
  Ruby:
    version: 3.4.1
    path: C:\Ruby34-x64\bin\ruby.EXE
npmPackages:
  "@react-native-community/cli":
    installed: 19.0.0
    wanted: 19.0.0
  react:
    installed: 19.1.0
    wanted: 19.1.0
  react-native:
    installed: 0.80.1
    wanted: 0.80.1
  react-native-windows: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: Not found
  newArchEnabled: Not found

info React Native v0.80.2 is now available (your project is running on v0.80.1).
info Changelog: https://github.com/facebook/react-native/releases/tag/v0.80.2
info Diff: https://react-native-community.github.io/upgrade-helper/?from=0.80.1&to=0.80.2
info For more info, check out "https://reactnative.dev/docs/upgrading?os=windows".

Stacktrace or Logs

PS E:\cpmad\rn\blogapp\BlogMobileApp> npx react-native run-android
info Installing the app...

> Task :app:installDebug
Installing APK 'app-debug.apk' on 'RMX2081 - 12' for :app:debug
Installed on 1 device.

[Incubating] Problems report is available at: file:///E:/cpmad/rn/blogapp/BlogMobileApp/android/build/reports/problems/problems-report.html

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.14.1/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

BUILD SUCCESSFUL in 47s
82 actionable tasks: 9 executed, 73 up-to-date
info Connecting to the development server...
info Starting the app on "adb-1042549a-38q5Ue._adb-tls-connect._tcp"...
Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.blogmobileapp/.MainActivity }

MANDATORY Reproducer

https://github.com/0AlmightyCoder/BlogMobileApp.git

Screenshots and Videos

Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions