refactor text render

Support G inherit props.
Refactor text render. Text glyphs will perfectly draw along the path
This commit is contained in:
Horcrux
2016-07-22 23:49:15 +08:00
parent 63f793c54e
commit 7e13b801e1
41 changed files with 467 additions and 477 deletions

View File

@@ -4,7 +4,6 @@ import createReactNativeComponentClass from 'react/lib/createReactNativeComponen
import {transformProps} from '../lib/props';
import {GroupAttributes} from '../lib/attributes';
import extractProps from '../lib/extract/extractProps';
import reusableProps from '../lib/reusableProps';
class G extends Component{
static displayName = 'G';
@@ -27,7 +26,6 @@ class G extends Component{
return <RNSVGGroup
{...extractedProps}
ref={ele => this.root = ele}
mergeList={reusableProps(extractedProps, props)}
>
{this.props.children}
</RNSVGGroup>;