finish gradients refactor

This commit is contained in:
Horcrux
2016-07-20 22:38:45 +08:00
parent 18e1b60823
commit ff2395bcc2
64 changed files with 804 additions and 605 deletions

View File

@@ -2,7 +2,6 @@ import React, {PropTypes} from 'react';
import SerializablePath from '../lib/SerializablePath';
import createReactNativeComponentClass from 'react/lib/createReactNativeComponentClass';
import {PathAttributes} from '../lib/attributes';
import mergeContext from '../lib/mergeContext';
import Shape from './Shape';
import {pathProps, numberProp} from '../lib/props';
@@ -10,8 +9,8 @@ class Path extends Shape {
static displayName = 'Path';
static propTypes = {
d: PropTypes.string.isRequired,
...pathProps
...pathProps,
d: PropTypes.string.isRequired
};
setNativeProps = (...args) => {
@@ -19,7 +18,7 @@ class Path extends Shape {
};
render() {
let props = mergeContext(this.props, this.context);
let props = this.props;
let d = new SerializablePath(props.d).toJSON();
return (