mirror of
https://github.com/zoriya/react-native-svg.git
synced 2025-12-20 05:55:10 +00:00
add some android support
add path for Text add stroke pattern add text dashed and fix dasharray bug
This commit is contained in:
@@ -82,15 +82,12 @@ const alignments = {
|
||||
};
|
||||
|
||||
export default function(props) {
|
||||
let textPath = props.path ? new SerializablePath(props.path).toJSON() : null;
|
||||
var textFrame = extractFontAndLines(
|
||||
props,
|
||||
childrenAsString(props.children)
|
||||
);
|
||||
|
||||
return {
|
||||
alignment: alignments[props.textAnchor] || 0,
|
||||
frame: textFrame,
|
||||
path: textPath
|
||||
frame: extractFontAndLines(
|
||||
props,
|
||||
childrenAsString(props.children)
|
||||
),
|
||||
path: props.path ? new SerializablePath(props.path).toJSON() : undefined
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user