finish Text props extract refactoring

This commit is contained in:
Horcrux
2016-09-16 23:59:38 +08:00
parent 74b9917bd3
commit ad196a7071
8 changed files with 153 additions and 48 deletions
+2 -2
View File
@@ -4,12 +4,12 @@ import extractTransform from './extractTransform';
import extractClipping from './extractClipping';
import extractResponder from './extractResponder';
import extractOpacity from './extractOpacity';
import {RenderableOnlyAttributes} from '../attributes';
import {fillAndStrokePropsKeys} from '../props';
import _ from 'lodash';
export default function(props, options = {stroke: true, transform: true, fill: true, responder: true}) {
let propList = [];
Object.keys(RenderableOnlyAttributes).forEach(name => {
fillAndStrokePropsKeys.forEach(name => {
if (!_.isNil(props[name])) {
// clipPath prop may provide `clipPathRef` as native prop
if (name === 'clipPath') {