Skip to content

Commit ef63066

Browse files
committed
fix avatar
1 parent f86b57a commit ef63066

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/avatar.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import DefaultRawTheme from './styles/raw-themes/light-raw-theme';
55
import ThemeManager from './styles/theme-manager';
66

77
const {
8+
Text,
89
Image,
910
View,
1011
StyleSheet,
@@ -112,7 +113,7 @@ const Avatar = React.createClass({
112113

113114
return <View {...other} style={this.prepareStyles(styles.root, style)}>
114115
{iconElement}
115-
{this.props.children}
116+
<Text>{this.props.children}</Text>
116117
</View>;
117118
}
118119
},

0 commit comments

Comments
 (0)