mirror of
https://github.com/zoriya/react-native-svg.git
synced 2025-12-20 22:05:14 +00:00
refactor Components props extracting
This commit is contained in:
@@ -76,7 +76,7 @@ function parseDelta(delta) {
|
||||
} else if (typeof delta === 'number') {
|
||||
return [delta];
|
||||
} else {
|
||||
[];
|
||||
return [];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -125,5 +125,5 @@ export default function(props, container) {
|
||||
startOffset: (startOffset || 0).toString(),
|
||||
positionX: _.isNil(x) ? null : x.toString(),
|
||||
positionY: _.isNil(y) ? null : y.toString()
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user