File tree 1 file changed +0
-13
lines changed
src/hooks/useAnimatedHighlightStyle
1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -68,19 +68,6 @@ export default function useAnimatedHighlightStyle({
68
68
const highlightBackgroundStyle = useAnimatedStyle ( ( ) => {
69
69
'worklet' ;
70
70
71
- // This code runs both on the JS thread (once for setup) and on the UI thread (for actual animation).
72
- // To avoid accessing Reanimated shared values (like .value) on the JS thread,
73
- // we guard the JS execution path with `_WORKLET`. This ensures we return a safe fallback style
74
- // during the JS pass and avoid any crashes or unexpected behavior.
75
- if ( ! _WORKLET ) {
76
- return {
77
- backgroundColor : backgroundColor ?? theme . appBG ,
78
- height : height ?? 'auto' ,
79
- opacity : 0 ,
80
- borderRadius,
81
- } ;
82
- }
83
-
84
71
const repeatableValue = repeatableProgress . get ( ) ;
85
72
const nonRepeatableValue = nonRepeatableProgress . get ( ) ;
86
73
You can’t perform that action at this time.
0 commit comments