Open AncientRoman opened 1 year ago
Do we have news about this ?
CC @marlenecota
I believe this should be fixed now (starting with version 15.4.0), since RNSVGMask
was added in this PR #2315
Mask does now exist in windows. It can be imported and used. However, it doesn't seem to work.
Any shape with mask="url(#Mask)"
just acts like it's not masked.
Bug
Importing and using mask with react-native-windows causes: Invariant Violation: requireNativeComponent: "RNSVGMask" was not found in the UIManager
This happens with a clean project using the latest versions of react native, react-native-windows. and react-native-svg.
Environment info
System: OS: Windows 10 10.0.22624 CPU: (8) x64 virt-7.2 Memory: 6.98 GB / 15.99 GB Binaries: Node: version: 18.16.0 path: C:\Program Files\nodejs\node.EXE Yarn: Not Found npm: version: 9.5.1 path: C:\Program Files\nodejs\npm.CMD Watchman: Not Found SDKs: Android SDK: Not Found Windows SDK: AllowDevelopmentWithoutDevLicense: Enabled AllowAllTrustedApps: Enabled Versions:
react-native-svg@13.9.0 react-native-windows@0.72.0 react-native@0.72.0 react@18.2.0
Steps To Reproduce
const App = ()=>{ return (
} AppRegistry.registerComponent(appName, () => App);
import {AppRegistry, Platform} from "react-native" import {name as appName} from "./app.json" import Svg, {Defs, Mask, Rect} from "react-native-svg"
const App = ()=>{ return (
} AppRegistry.registerComponent(appName, () => App);