mirror of
https://github.com/zoriya/react-native-svg.git
synced 2025-12-20 14:05:09 +00:00
complete ClipPath refactor
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user