Skip to content

Commit 1bb0885

Browse files
Himanshu SatijaHimanshu Satija
authored andcommitted
fix button style
1 parent caa36af commit 1bb0885

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Components/Widgets/Button.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,14 @@ export default class Button extends NativeBaseComponent {
6060
renderChildren() {
6161
if(typeof this.props.children == undefined || typeof this.props.children == "string") {
6262
return <TouchableOpacity {...this.prepareRootProps()} >
63-
<Text style={[this.getTextStyle(), this.getInitialStyle().buttonText]}>{this.props.children}</Text>
63+
<Text style={this.getTextStyle()}>{this.props.children}</Text>
6464
</TouchableOpacity>
6565
}
6666

6767
else if(Array.isArray(this.props.children)) {
6868
if(this.props.children[0] && (typeof this.props.children[0] == "string" || this.props.children[0].type == undefined))
6969
return <TouchableOpacity {...this.prepareRootProps()} >
70-
<Text style={[this.getTextStyle(), this.getInitialStyle().buttonText]}>{this.props.children[0]}</Text>
70+
<Text style={this.getTextStyle()}>{this.props.children[0]}</Text>
7171
<Text>
7272
{this.props.children[1]}
7373
</Text>
@@ -78,7 +78,7 @@ export default class Button extends NativeBaseComponent {
7878
<Text>
7979
{this.props.children[0]}
8080
</Text>
81-
<Text style={[this.getTextStyle(), this.getInitialStyle().buttonText]}>{this.props.children[1]}</Text>
81+
<Text style={this.getTextStyle()}>{this.props.children[1]}</Text>
8282
</TouchableOpacity>
8383

8484
else

0 commit comments

Comments
 (0)