mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-05-27 12:41:49 +00:00
Fix #284
This commit is contained in:
@@ -105,7 +105,7 @@ export default function(props, container) {
|
||||
content = childrenString;
|
||||
children = null;
|
||||
}
|
||||
} else if (Children.count(children) > 1) {
|
||||
} else if (Children.count(children) > 1 || Array.isArray(children)) {
|
||||
children = Children.map(children, child => {
|
||||
if (typeof child === 'string' || typeof child === 'number') {
|
||||
return <TSpan>{child.toString()}</TSpan>;
|
||||
|
||||
Reference in New Issue
Block a user