mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-08 17:15:04 +00:00
Fixes for animation of width and height
This commit is contained in:
+8
-2
@@ -22,8 +22,14 @@ export default class extends Shape {
|
||||
height: 0
|
||||
};
|
||||
|
||||
setNativeProps = (...args) => {
|
||||
this.root.setNativeProps(...args);
|
||||
setNativeProps = (props) => {
|
||||
if (props.width) {
|
||||
props.usewidth = `${props.width}`;
|
||||
}
|
||||
if (props.height) {
|
||||
props.useheight = `${props.height}`;
|
||||
}
|
||||
this.root.setNativeProps(props);
|
||||
};
|
||||
|
||||
render() {
|
||||
|
||||
Reference in New Issue
Block a user