Add midLine prop/attr to TextPath.js

This commit is contained in:
Mikael Sand
2017-07-29 15:29:43 +03:00
parent ab6bbd25e9
commit 3005b59216
+2 -2
View File
@@ -15,7 +15,7 @@ export default class extends Shape {
static propTypes = textPathProps;
render() {
let {children, href, startOffset, method, spacing, side, alignmentBaseline, ...props} = this.props;
let {children, href, startOffset, method, spacing, side, alignmentBaseline, midLine, ...props} = this.props;
if (href) {
let matched = href.match(idExpReg);
@@ -23,7 +23,7 @@ export default class extends Shape {
href = matched[1];
startOffset = `${startOffset || 0}`;
return <RNSVGTextPath
{...{href, startOffset, method, spacing, side, alignmentBaseline}}
{...{href, startOffset, method, spacing, side, alignmentBaseline, midLine}}
{...extractProps({
...props,
x: null,