@@ -314,6 +314,12 @@ const AnimatedFAB = ({
314314 const md2Elevation = disabled || ! isIOS ? 0 : 6 ;
315315 const md3Elevation = disabled || ! isIOS ? 0 : 3 ;
316316
317+ const shadowStyle = isV3 ? styles . v3Shadow : styles . shadow ;
318+ const baseStyle = [
319+ StyleSheet . absoluteFill ,
320+ disabled ? styles . disabled : shadowStyle ,
321+ ] ;
322+
317323 const newAccessibilityState = { ...accessibilityState , disabled } ;
318324
319325 return (
@@ -359,8 +365,7 @@ const AnimatedFAB = ({
359365 < Animated . View
360366 pointerEvents = "none"
361367 style = { [
362- StyleSheet . absoluteFill ,
363- disabled ? styles . disabled : styles . shadow ,
368+ baseStyle ,
364369 {
365370 width : extendedWidth ,
366371 opacity : animFAB . interpolate ( {
@@ -370,12 +375,12 @@ const AnimatedFAB = ({
370375 borderRadius,
371376 } ,
372377 ] }
378+ testID = { `${ testID } -extended-shadow` }
373379 />
374380 < Animated . View
375381 pointerEvents = "none"
376382 style = { [
377- StyleSheet . absoluteFill ,
378- disabled ? styles . disabled : styles . shadow ,
383+ baseStyle ,
379384 {
380385 opacity : animFAB . interpolate ( {
381386 inputRange : propForDirection ( [ distance , 0.9 * distance , 0 ] ) ,
@@ -392,6 +397,7 @@ const AnimatedFAB = ({
392397 } ,
393398 combinedStyles . absoluteFill ,
394399 ] }
400+ testID = { `${ testID } -shadow` }
395401 />
396402 </ View >
397403 < Animated . View
@@ -519,6 +525,9 @@ const styles = StyleSheet.create({
519525 shadow : {
520526 elevation : 6 ,
521527 } ,
528+ v3Shadow : {
529+ elevation : 3 ,
530+ } ,
522531 iconWrapper : {
523532 alignItems : 'center' ,
524533 justifyContent : 'center' ,
0 commit comments