@@ -156,6 +156,7 @@ export default class ActionButton extends Component {
156
156
< Animated . Text
157
157
style = { [ styles . btnText ,
158
158
{
159
+ fontSize : this . props . buttonFontSize ,
159
160
color : this . state . anim . interpolate ( {
160
161
inputRange : [ 0 , 1 ] ,
161
162
outputRange : [ this . props . buttonTextColor , this . props . btnOutRangeTxt ]
@@ -196,7 +197,7 @@ export default class ActionButton extends Component {
196
197
angle = { startRadian + index * offset }
197
198
btnColor = { this . props . btnOutRange }
198
199
{ ...button . props }
199
- onPress = { ( ) => {
200
+ onPress = { ( ) => {
200
201
if ( this . props . autoInactive ) {
201
202
this . timeout = setTimeout ( ( ) => {
202
203
this . reset ( ) ;
@@ -274,13 +275,16 @@ ActionButton.propTypes = {
274
275
radius : PropTypes . number ,
275
276
children : PropTypes . node ,
276
277
position : PropTypes . oneOf ( [ 'left' , 'center' , 'right' ] ) ,
278
+ btnOutRange : PropTypes . string ,
279
+ buttonFontSize : PropTypes . number ,
277
280
} ;
278
281
279
282
ActionButton . defaultProps = {
280
283
active : false ,
281
284
bgColor : 'transparent' ,
282
285
buttonColor : 'rgba(0,0,0,1)' ,
283
286
buttonTextColor : 'rgba(255,255,255,1)' ,
287
+ buttonFontSize : 24 ,
284
288
position : 'center' ,
285
289
outRangeScale : 1 ,
286
290
autoInactive : true ,
@@ -326,7 +330,6 @@ const styles = StyleSheet.create({
326
330
} ,
327
331
btnText : {
328
332
marginTop : - 4 ,
329
- fontSize : 24 ,
330
333
backgroundColor : 'transparent' ,
331
334
position : 'relative' ,
332
335
} ,
0 commit comments