Fixes for animation of width and height

This commit is contained in:
Mikael Sand
2018-10-10 22:35:25 +03:00
parent b13e164e22
commit e307eeee57
8 changed files with 75 additions and 15 deletions
+8 -2
View File
@@ -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() {