react-native-svg icon indicating copy to clipboard operation
react-native-svg copied to clipboard

Windows: 'RNSVGSvgViewModule' could not be found

Open k1mmm opened this issue 1 year ago • 4 comments

Description

Calling toDataURL() results in error on Windows

Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'RNSVGSvgViewModule' could not be found. Verify that a module by this name is registered in the native binary.Bridgeless mode: false. TurboModule interop: false. Modules loaded: {"NativeModules":["PlatformConstants","LogBox","Timing","AppState","SourceCode","BlobModule","WebSocketModule","DevSettings","Networking","UIManager","DeviceInfo","ImageLoader","LinkingManager","Appearance","NativeAnimatedModule","RNCAsyncStorage","RNCClipboard","FileReaderModule"],"TurboModules":[],"NotFound":["NativePerformanceCxx","NativePerformanceObserverCxx","DevToolsSettingsManager","RedBox","BugReporting","HeadlessJsTaskSupport","DeviceEventManager","SoundManager","IntentAndroid","PlatformLocalStorage","RNC_AsyncSQLiteDBStorage","FrameRateLogger","KeyboardObserver","RNSVGSvgViewModule"]}

Steps to reproduce

Set up a ref to <Svg /> element and call .toDataURL()

Snack or a link to a repository

https://github.com/k1mmm/react-native-svg-to-data-url

SVG version

15.4.0

React Native version

0.74.3

Platforms

Android, iOS, macOS, Web

JavaScript runtime

Hermes

Workflow

React Native

Architecture

Fabric (New Architecture)

Build type

Debug app & dev bundle

Device

Real device

Device model

No response

Acknowledgements

Yes

k1mmm avatar Jul 28 '24 15:07 k1mmm

Hey! 👋

The issue doesn't seem to contain a minimal reproduction.

Could you provide a snack or a link to a GitHub repository under your username that reproduces the problem?

github-actions[bot] avatar Jul 28 '24 15:07 github-actions[bot]

Here's a link to a minimal reproduction repo =) https://github.com/k1mmm/react-native-svg-to-data-url

k1mmm avatar Jul 29 '24 09:07 k1mmm

CC @marlenecota

bohdanprog avatar Jul 31 '24 09:07 bohdanprog

I met totally same problem on Android device.

ablllcd avatar Apr 10 '25 01:04 ablllcd