mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-06 16:32:24 +00:00
Fix #228
This commit is contained in:
@@ -105,8 +105,8 @@ export default function(props, container) {
|
||||
}
|
||||
} else if (Children.count(children) > 1) {
|
||||
children = Children.map(children, child => {
|
||||
if (typeof child === 'string') {
|
||||
return <TSpan>{child}</TSpan>;
|
||||
if (typeof child === 'string' || typeof child === 'number') {
|
||||
return <TSpan>{child.toString()}</TSpan>;
|
||||
} else {
|
||||
return child;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user