Skip to content

Commit

Permalink
Add children props to Send component (#487)
Browse files Browse the repository at this point in the history
  • Loading branch information
sf27 authored and cooperka committed Aug 28, 2017
1 parent 7c3fc48 commit 6be3db1
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/Send.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,15 @@ export default class Send extends React.Component {
}}
accessibilityTraits="button"
>
<Text style={[styles.text, this.props.textStyle]}>{this.props.label}</Text>
{this.props.children ?
<View>
{this.props.children}
</View>
:
<View>
<Text style={[styles.text, this.props.textStyle]}>{this.props.label}</Text>
</View>
}
</TouchableOpacity>
);
}
Expand Down

0 comments on commit 6be3db1

Please sign in to comment.