mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-05-26 04:19:17 +00:00
Add midLine prop/attr to TextPath.js
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user