mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-05-25 20:09:12 +00:00
Allow style arrays to affect font properties
This commit is contained in:
@@ -42,7 +42,8 @@ function parseFontString(font) {
|
||||
}
|
||||
|
||||
export function extractFont(prop) {
|
||||
const props = { ...prop.style, ...prop };
|
||||
const style = prop.style;
|
||||
const props = { ...(style && style.length ? Object.assign({}, ...style) : style), ...prop };
|
||||
const {
|
||||
fontData,
|
||||
fontStyle,
|
||||
@@ -97,7 +98,7 @@ function getChild(child) {
|
||||
}
|
||||
}
|
||||
|
||||
export default function extractText(props, container = false) {
|
||||
export default function extractText(props, container) {
|
||||
const {
|
||||
x,
|
||||
y,
|
||||
|
||||
Reference in New Issue
Block a user