mirror of
https://github.com/zoriya/react-native-svg.git
synced 2025-12-21 06:15:15 +00:00
finish basic text support on iOS
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import SerializablePath from '../SerializablePath';
|
||||
import _ from 'lodash';
|
||||
import React, {Children} from 'react';
|
||||
import {fontAndRenderPropsKeys} from '../props';
|
||||
import {fontAndRenderPropsKeys, fontPropsKeys} from '../props';
|
||||
import Span from '../../elements/Span';
|
||||
|
||||
const fontRegExp = /^\s*((?:(?:normal|bold|italic)\s+)*)(?:(\d+(?:\.\d+)?)[ptexm%]*(?:\s*\/.*?)?\s+)?\s*"?([^"]*)/i;
|
||||
@@ -209,8 +209,11 @@ export default function(props) {
|
||||
...extractFont(frame.props)
|
||||
}
|
||||
};
|
||||
|
||||
return <Span {...spanProps} />;
|
||||
|
||||
return <Span
|
||||
{..._.omit(frame.props, fontPropsKeys)}
|
||||
frame={spanProps}
|
||||
/>;
|
||||
});
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user