Weird Display in RN V0.68 New Architecture Enabled
See original GitHub issueBug
Svg does not show in rn v0.68.0-rc.2 with new architecture enabled instead it shows a strange Text of 'RNSVGRect'
react-native init CleanProject --version 0.68.0-rc.2
cd CleanProject/
yarn add react-native-svg
modify android/gradle.properties -> and change to newArchEnabled=true
run the app -> react-native run-android
Environment info
React native info output:
System:
OS: macOS 11.6.2
CPU: (4) x64 Intel(R) Core(TM) m3-7Y32 CPU @ 1.10GHz
Memory: 311.86 MB / 8.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 16.13.2 - /usr/local/bin/node
Yarn: 3.1.1 - /usr/local/bin/yarn
npm: 8.1.2 - /usr/local/bin/npm
Watchman: Not Found
Managers:
CocoaPods: 1.11.2 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 21.2, iOS 15.2, macOS 12.1, tvOS 15.2, watchOS 8.3
Android SDK: Not Found
IDEs:
Android Studio: 2020.3 AI-203.7717.56.2031.7935034
Xcode: 13.2.1/13C100 - /usr/bin/xcodebuild
Languages:
Java: 11.0.10 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 17.0.2 => 17.0.2
react-native: 0.68.0-rc.2 => 0.68.0-rc.2
react-native-macos: Not Found
npmGlobalPackages:
*react-native*: Not Found
Library version: ^12.1.1
Steps To Reproduce
- react-native init CleanProject --version 0.68.0-rc.2
- cd CleanProject/
- yarn add react-native-svg
- modify android/gradle.properties -> and change to newArchEnabled=true
- yarn android
Describe what you expected to happen:
- Display svg correctly
Issue Analytics
- State:
- Created 2 years ago
- Comments:10 (1 by maintainers)
Top Results From Across the Web
Weird Display in RN V0.68 New Architecture Enabled #1709
Bug. Svg does not show in rn v0.68.0-rc.2 with new architecture enabled instead it shows a strange Text of 'RNSVGRect'
Read more >Enabling TurboModule and Fabric in React Native 0.68 leads ...
I only had this issue when I reverted from using the new architecture, but still wanted to stay on 0.68.
Read more >Updating Ignite to React Native 0.68 - YouTube
In this stream, Jamon will be working on Ignite -- upgrading to the latest version of React Native and Expo.
Read more >Announcing React Native 0.68
Today we are announcing the 0.68.0 release of React Native, with opt-in to the New React Native Architecture, bug fixes and more.
Read more >React-native 0.68 with new architecture - Xebia
Announcing React Native 0.68 with a whole new main core implementation.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@kelset Example repo has been created at https://github.com/myckhel/svg-fabric-unsupported
Running App
I think we can close this issue now since Fabric support is released. Although, if you want to use it on Android in RN version < 0.70.0-rc.3, you need to link the components manually. There is already an issue for how to do it which I plan to resolve ASAP: https://github.com/react-native-svg/react-native-svg/issues/1839. Feel free to comment here if something is wrong and we can always reopen it then.