@@ -156,6 +156,7 @@ export default class ActionButton extends Component {
156156 < Animated . Text
157157 style = { [ styles . btnText ,
158158 {
159+ fontSize : this . props . buttonFontSize ,
159160 color : this . state . anim . interpolate ( {
160161 inputRange : [ 0 , 1 ] ,
161162 outputRange : [ this . props . buttonTextColor , this . props . btnOutRangeTxt ]
@@ -196,7 +197,7 @@ export default class ActionButton extends Component {
196197 angle = { startRadian + index * offset }
197198 btnColor = { this . props . btnOutRange }
198199 { ...button . props }
199- onPress = { ( ) => {
200+ onPress = { ( ) => {
200201 if ( this . props . autoInactive ) {
201202 this . timeout = setTimeout ( ( ) => {
202203 this . reset ( ) ;
@@ -274,13 +275,16 @@ ActionButton.propTypes = {
274275 radius : PropTypes . number ,
275276 children : PropTypes . node ,
276277 position : PropTypes . oneOf ( [ 'left' , 'center' , 'right' ] ) ,
278+ btnOutRange : PropTypes . string ,
279+ buttonFontSize : PropTypes . number ,
277280} ;
278281
279282ActionButton . defaultProps = {
280283 active : false ,
281284 bgColor : 'transparent' ,
282285 buttonColor : 'rgba(0,0,0,1)' ,
283286 buttonTextColor : 'rgba(255,255,255,1)' ,
287+ buttonFontSize : 24 ,
284288 position : 'center' ,
285289 outRangeScale : 1 ,
286290 autoInactive : true ,
@@ -326,7 +330,6 @@ const styles = StyleSheet.create({
326330 } ,
327331 btnText : {
328332 marginTop : - 4 ,
329- fontSize : 24 ,
330333 backgroundColor : 'transparent' ,
331334 position : 'relative' ,
332335 } ,
0 commit comments