react-native-svg: error: cannot find symbol
import com.facebook.react.bridge.ColorPropConverter;
^
symbol: class ColorPropConverter
location: package com.facebook.react.bridge
OS: macOS 12.3 CPU: (12) x64 Intel® Core™ i7-9750H CPU @ 2.60GHz Memory: 41.12 MB / 16.00 GB Shell: 5.8 - /bin/zsh Binaries: Node: 17.2.0 - /usr/local/bin/node Yarn: 1.22.18 - ~/.yarn/bin/yarn npm: 8.1.4 - /usr/local/bin/npm Watchman: 2021.12.13.00 - /usr/local/bin/watchman SDKs: iOS SDK: Platforms: DriverKit 21.2, iOS 15.2, macOS 12.1, tvOS 15.2, watchOS 8.3 IDEs: Android Studio: 2021.1 AI-211.7628.21.2111.8193401 Xcode: 13.2.1/13C100 - /usr/bin/xcodebuild npmPackages: react: 16.9.0 => 16.9.0 react-native: 0.61.4 => 0.61.4 npmGlobalPackages: react-native-cli: 2.0.1
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 16 (2 by maintainers)
The issue seems to come with the latest version of react-native-svg 12.3.0, this change: #1705.
As it seems the missing class
ColorPropConvertercomes with ReactNative 0.63. So, from 12.3.0 on react-native-svg requires RN 0.63 or newer. I was able to fix it for me by downgrading to 12.2.0.I think this new requirement should be added to the release notes and adjusted in
package.json.follow up