mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-02 23:02:16 +00:00
finish Text props extract refactoring
This commit is contained in:
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user