mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-08 09:10:44 +00:00
Implement TextPath: first step (iOS)
This commit is contained in:
+2
-2
@@ -98,9 +98,9 @@ const TextAttributes = merge({
|
||||
positionY: true
|
||||
}, RenderableAttributes);
|
||||
|
||||
const TextPathAttributes = {
|
||||
const TextPathAttributes = merge({
|
||||
href: true
|
||||
};
|
||||
}, RenderableAttributes);
|
||||
|
||||
const TSpanAttibutes = merge({
|
||||
content: true
|
||||
|
||||
@@ -79,7 +79,7 @@ function parseDelta(delta) {
|
||||
}
|
||||
}
|
||||
|
||||
export default function(props, isText) {
|
||||
export default function(props, container) {
|
||||
const {
|
||||
x,
|
||||
y,
|
||||
@@ -95,7 +95,7 @@ export default function(props, isText) {
|
||||
let content = null;
|
||||
|
||||
if (typeof children === 'string') {
|
||||
if (isText) {
|
||||
if (container) {
|
||||
children = <TSpan>{children}</TSpan>;
|
||||
} else {
|
||||
content = children;
|
||||
|
||||
Reference in New Issue
Block a user