@@ -90,7 +90,7 @@ export function ComposerDictationDraftContent(props: {
9090} ) {
9191 const rotation = useSharedValue ( props . hidden ? 1 : 0 ) ;
9292 useLayoutEffect ( ( ) => {
93- rotation . value = withTiming ( props . hidden ? 1 : 0 , TOOLBAR_FLIP_TIMING ) ;
93+ rotation . set ( withTiming ( props . hidden ? 1 : 0 , TOOLBAR_FLIP_TIMING ) ) ;
9494 } , [ props . hidden , rotation ] ) ;
9595 const compact = props . compact ;
9696 const animatedStyle = useAnimatedStyle ( ( ) => ( {
@@ -263,7 +263,7 @@ function VoiceActionButton(props: {
263263 const variant = props . variant ?? "plain" ;
264264 const loadingVisibility = useSharedValue ( props . loading ? 1 : 0 ) ;
265265 useLayoutEffect ( ( ) => {
266- loadingVisibility . value = withTiming ( props . loading ? 1 : 0 , DICTATION_TIMING ) ;
266+ loadingVisibility . set ( withTiming ( props . loading ? 1 : 0 , DICTATION_TIMING ) ) ;
267267 } , [ loadingVisibility , props . loading ] ) ;
268268 const primaryStyle = useAnimatedStyle ( ( ) => ( { opacity : 1 - loadingVisibility . value } ) ) ;
269269
@@ -322,7 +322,7 @@ export function ComposerDictationStatus(props: {
322322} ) {
323323 const recordingVisibility = useSharedValue ( props . phase === "recording" ? 1 : 0 ) ;
324324 useLayoutEffect ( ( ) => {
325- recordingVisibility . value = withTiming ( props . phase === "recording" ? 1 : 0 , DICTATION_TIMING ) ;
325+ recordingVisibility . set ( withTiming ( props . phase === "recording" ? 1 : 0 , DICTATION_TIMING ) ) ;
326326 } , [ props . phase , recordingVisibility ] ) ;
327327 const waveformStyle = useAnimatedStyle ( ( ) => ( {
328328 opacity : recordingVisibility . value ,
0 commit comments