Skip to content

Commit 6be3db1

Browse files
sf27cooperka
authored andcommitted
Add children props to Send component (#487)
1 parent 7c3fc48 commit 6be3db1

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/Send.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,15 @@ export default class Send extends React.Component {
2525
}}
2626
accessibilityTraits="button"
2727
>
28-
<Text style={[styles.text, this.props.textStyle]}>{this.props.label}</Text>
28+
{this.props.children ?
29+
<View>
30+
{this.props.children}
31+
</View>
32+
:
33+
<View>
34+
<Text style={[styles.text, this.props.textStyle]}>{this.props.label}</Text>
35+
</View>
36+
}
2937
</TouchableOpacity>
3038
);
3139
}

0 commit comments

Comments
 (0)