diff --git a/src/components/FAB/AnimatedFAB.tsx b/src/components/FAB/AnimatedFAB.tsx index c66038d925..c7452df02a 100644 --- a/src/components/FAB/AnimatedFAB.tsx +++ b/src/components/FAB/AnimatedFAB.tsx @@ -351,7 +351,7 @@ const AnimatedFAB = ({ scale: visibility, }, ], - borderRadius, + borderRadius: restStyle?.borderRadius || borderRadius, }, !isV3 && { elevation: md2Elevation, @@ -375,7 +375,7 @@ const AnimatedFAB = ({ ], }, styles.standard, - { borderRadius }, + { borderRadius: restStyle?.borderRadius || borderRadius }, ]} > @@ -389,7 +389,7 @@ const AnimatedFAB = ({ inputRange: propForDirection([distance, 0.9 * distance, 0]), outputRange: propForDirection([1, 0.15, 0]), }), - borderRadius, + borderRadius: restStyle?.borderRadius || borderRadius, }, ]} testID={`${testID}-extended-shadow`} @@ -408,7 +408,8 @@ const AnimatedFAB = ({ inputRange: propForDirection([distance, 0]), outputRange: propForDirection([ SIZE / (extendedWidth / SIZE), - borderRadius, + (restStyle?.borderRadius as number | undefined) || + borderRadius, ]), }), }, @@ -419,7 +420,10 @@ const AnimatedFAB = ({