File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ import {Constants} from '../../helpers';
6
6
import { Colors , Typography , ThemeManager , BorderRadiuses } from '../../style' ;
7
7
import { PureBaseComponent } from '../../commons' ;
8
8
import TouchableOpacity from '../touchableOpacity' ;
9
- import View from '../view' ;
10
9
import Text from '../text' ;
11
10
12
11
const PADDINGS = {
@@ -465,6 +464,8 @@ export default class Button extends PureBaseComponent {
465
464
466
465
return (
467
466
< TouchableOpacity
467
+ row
468
+ centerV
468
469
style = { [
469
470
this . styles . container ,
470
471
animateLayout && this . getAnimationDirectionStyle ( ) ,
@@ -486,11 +487,9 @@ export default class Button extends PureBaseComponent {
486
487
{ ...others }
487
488
ref = { this . setRef }
488
489
>
489
- < View row centerV >
490
- { this . props . children }
491
- { this . props . iconOnRight ? this . renderLabel ( ) : this . renderIcon ( ) }
492
- { this . props . iconOnRight ? this . renderIcon ( ) : this . renderLabel ( ) }
493
- </ View >
490
+ { this . props . children }
491
+ { this . props . iconOnRight ? this . renderLabel ( ) : this . renderIcon ( ) }
492
+ { this . props . iconOnRight ? this . renderIcon ( ) : this . renderLabel ( ) }
494
493
</ TouchableOpacity >
495
494
) ;
496
495
}
You can’t perform that action at this time.
0 commit comments