mirror of
https://github.com/zoriya/react-native-svg.git
synced 2025-12-20 14:05:09 +00:00
Add setNativeProps method for most of elements
This commit is contained in:
@@ -21,10 +21,15 @@ class Rect extends Shape {
|
||||
svgId: numberProp
|
||||
};
|
||||
|
||||
setNativeProps = (...args) => {
|
||||
this.root.setNativeProps(...args);
|
||||
};
|
||||
|
||||
render() {
|
||||
let props = mergeContext(this.props, this.context);
|
||||
|
||||
return <RNSVGRect
|
||||
ref={ele => this.root = ele}
|
||||
{...this.extractProps({
|
||||
...props,
|
||||
x: null,
|
||||
|
||||
Reference in New Issue
Block a user