@@ -16,6 +16,7 @@ import Animated, {
1616 ReduceMotion ,
1717 type SharedValue ,
1818 useAnimatedStyle ,
19+ useReducedMotion ,
1920 useSharedValue ,
2021 withTiming ,
2122} from "react-native-reanimated" ;
@@ -79,6 +80,7 @@ export function FloatingWorkingControl(props: {
7980 readonly lift ?: SharedValue < number > ;
8081} ) {
8182 const { width : windowWidth } = useWindowDimensions ( ) ;
83+ const reducedMotion = useReducedMotion ( ) ;
8284 const [ overlayWidth , setOverlayWidth ] = useState ( windowWidth ) ;
8385 const [ queueWidth , setQueueWidth ] = useState ( 0 ) ;
8486 const [ actionWidth , setActionWidth ] = useState ( 0 ) ;
@@ -271,8 +273,8 @@ export function FloatingWorkingControl(props: {
271273 className = "absolute left-0 right-0 z-20 items-center"
272274 style = { [ { top : - CONTROL_OVERLAY_OFFSET } , liftStyle ] }
273275 onLayout = { ( event ) => setOverlayWidth ( event . nativeEvent . layout . width ) }
274- entering = { NATIVE_LIQUID_GLASS_SUPPORTED ? undefined : CONTROL_ENTERING }
275- exiting = { NATIVE_LIQUID_GLASS_SUPPORTED ? undefined : CONTROL_EXITING }
276+ entering = { NATIVE_LIQUID_GLASS_SUPPORTED || reducedMotion ? undefined : CONTROL_ENTERING }
277+ exiting = { NATIVE_LIQUID_GLASS_SUPPORTED || reducedMotion ? undefined : CONTROL_EXITING }
276278 >
277279 { hasCapsule && NATIVE_LIQUID_GLASS_SUPPORTED ? (
278280 < UniwindGlassContainer
@@ -551,12 +553,13 @@ function StatusLabelRow(props: {
551553 readonly onLayout : ( event : LayoutChangeEvent ) => void ;
552554 readonly onPress ?: ( ) => void ;
553555} ) {
556+ const reducedMotion = useReducedMotion ( ) ;
554557 const rowClassName = `h-11 flex-row items-center px-4 ${ props . className ?? "" } ` ;
555558 return (
556559 < Animated . View
557560 className = "absolute max-w-full"
558- entering = { LABEL_ENTERING }
559- exiting = { LABEL_EXITING }
561+ entering = { reducedMotion ? undefined : LABEL_ENTERING }
562+ exiting = { reducedMotion ? undefined : LABEL_EXITING }
560563 onLayout = { props . onLayout }
561564 >
562565 { props . onPress ? (
0 commit comments