File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments