complete ClipPath refactor

This commit is contained in:
Horcrux
2016-07-20 14:44:19 +08:00
parent dd6cb80e84
commit 18e1b60823
30 changed files with 254 additions and 251 deletions

View File

@@ -10,23 +10,10 @@ class Path extends Shape {
static displayName = 'Path';
static propTypes = {
d: PropTypes.string,
d: PropTypes.string.isRequired,
...pathProps
};
static contextTypes = {
...pathProps
};
_dimensions = null;
componentWillReceiveProps = nextProps => {
if (nextProps.d !== this.props.d) {
this._dimensions = null;
}
};
setNativeProps = (...args) => {
this.root.setNativeProps(...args);
};