[js] provide defaults, prevent crash

This commit is contained in:
Maksym Komarychev
2018-06-09 00:08:53 +03:00
parent ba7bef6ce8
commit fe3e60f4a7

View File

@@ -17,6 +17,11 @@ export default class extends Shape {
...pathProps
};
static defaultProps = {
width: 0,
height: 0
};
setNativeProps = (...args) => {
this.root.setNativeProps(...args);
};