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