11import * as React from 'react' ;
22import {
33 Animated ,
4+ ColorValue ,
45 GestureResponderEvent ,
56 StyleProp ,
67 StyleSheet ,
@@ -38,6 +39,7 @@ export type Props = {
3839 * - `toggleStackOnLongPress`: callback that is called when `FAB` is long pressed
3940 * - `size`: size of action item. Defaults to `small`. @supported Available in v5.x
4041 * - `testID`: testID to be used on tests
42+ * - `rippleColor`: color of the ripple effect.
4143 */
4244 actions : Array < {
4345 icon : IconSource ;
@@ -52,6 +54,7 @@ export type Props = {
5254 onPress : ( e : GestureResponderEvent ) => void ;
5355 size ?: 'small' | 'medium' ;
5456 testID ?: string ;
57+ rippleColor ?: ColorValue ;
5558 } > ;
5659 /**
5760 * Icon to display for the `FAB`.
@@ -70,6 +73,10 @@ export type Props = {
7073 * Custom backdrop color for opened speed dial background.
7174 */
7275 backdropColor ?: string ;
76+ /**
77+ * Color of the ripple effect.
78+ */
79+ rippleColor ?: ColorValue ;
7380 /**
7481 * Function to execute on pressing the `FAB`.
7582 */
@@ -208,6 +215,7 @@ const FABGroup = ({
208215 variant = 'primary' ,
209216 enableLongPressWhenStackOpened = false ,
210217 backdropColor : customBackdropColor ,
218+ rippleColor,
211219} : Props ) => {
212220 const theme = useInternalTheme ( themeOverrides ) ;
213221 const { current : backdrop } = React . useRef < Animated . Value > (
@@ -426,6 +434,7 @@ const FABGroup = ({
426434 accessibilityRole = "button"
427435 testID = { it . testID }
428436 visible = { open }
437+ rippleColor = { it . rippleColor }
429438 />
430439 </ View >
431440 ) ;
@@ -457,6 +466,7 @@ const FABGroup = ({
457466 label = { label }
458467 testID = { testID }
459468 variant = { variant }
469+ rippleColor = { rippleColor }
460470 />
461471 </ View >
462472 </ View >
0 commit comments