@@ -35,7 +35,6 @@ export default class ActionButtonItem extends Component {
35
35
activeOpacity : DEFAULT_ACTIVE_OPACITY ,
36
36
fixNativeFeedbackRadius : false ,
37
37
nativeFeedbackRippleColor : "rgba(255,255,255,0.75)" ,
38
- numberOfLines : 1 ,
39
38
} ;
40
39
}
41
40
@@ -45,8 +44,7 @@ export default class ActionButtonItem extends Component {
45
44
useNativeFeedback : PropTypes . bool ,
46
45
fixNativeFeedbackRadius : PropTypes . bool ,
47
46
nativeFeedbackRippleColor : PropTypes . string ,
48
- activeOpacity : PropTypes . number ,
49
- numberOfLines : PropTypes . number ,
47
+ activeOpacity : PropTypes . number
50
48
} ;
51
49
}
52
50
@@ -56,7 +54,8 @@ export default class ActionButtonItem extends Component {
56
54
position,
57
55
verticalOrientation,
58
56
hideShadow,
59
- spacing
57
+ spacing,
58
+ borderRadius
60
59
} = this . props ;
61
60
62
61
if ( ! this . props . active ) return null ;
@@ -82,7 +81,7 @@ export default class ActionButtonItem extends Component {
82
81
alignItems : "center" ,
83
82
width : size ,
84
83
height : size ,
85
- borderRadius : size / 2 ,
84
+ borderRadius : borderRadius || size / 2 ,
86
85
backgroundColor : this . props . buttonColor || this . props . btnColor
87
86
} ;
88
87
@@ -97,7 +96,7 @@ export default class ActionButtonItem extends Component {
97
96
height : size ,
98
97
marginBottom : spacing ,
99
98
right : this . props . offsetX ,
100
- borderRadius : this . props . size / 2
99
+ borderRadius :borderRadius || this . props . size / 2
101
100
}
102
101
: {
103
102
paddingHorizontal : this . props . offsetX ,
@@ -110,7 +109,6 @@ export default class ActionButtonItem extends Component {
110
109
>
111
110
< View >
112
111
< Touchable
113
- rejectResponderTermination
114
112
testID = { this . props . testID }
115
113
accessibilityLabel = { this . props . accessibilityLabel }
116
114
background = { touchableBackground (
@@ -143,8 +141,7 @@ export default class ActionButtonItem extends Component {
143
141
parentSize,
144
142
size,
145
143
position,
146
- spaceBetween,
147
- numberOfLines,
144
+ spaceBetween
148
145
} = this . props ;
149
146
const offsetTop = Math . max ( size / 2 - TEXT_HEIGHT / 2 , 0 ) ;
150
147
const positionStyles = { top : offsetTop } ;
@@ -173,7 +170,6 @@ export default class ActionButtonItem extends Component {
173
170
< Text
174
171
allowFontScaling = { false }
175
172
style = { [ styles . text , this . props . textStyle ] }
176
- numberOfLines = { numberOfLines }
177
173
>
178
174
{ this . props . title }
179
175
</ Text >
@@ -182,7 +178,6 @@ export default class ActionButtonItem extends Component {
182
178
183
179
return (
184
180
< TextTouchable
185
- rejectResponderTermination
186
181
background = { touchableBackground (
187
182
this . props . nativeFeedbackRippleColor ,
188
183
this . props . fixNativeFeedbackRadius
0 commit comments