Value is undefined, expected an Object #1758 #2890
-
I have begun to see this error for all of my animations that use I am using There have been no other related changes made recently & reverting back to previous commits doesn't fix the problem. I checked for conflicting versions of the package but I only have one installed. My animations that use I am not sure how to pinpoint the real issue & so didn't want to create an issue. Has anybody any idea of what else I should be looking at to solve this problem? Here is a list of my packages
Edit: I have tried reverting back to expo 43 & downgrading all related packages, I still get the error. Edit 2: import {
runOnJS,
useSharedValue,
useAnimatedScrollHandler
} from 'react-native-reanimated'
import React from 'react'
const useVerticalScrollHandler = () => {
const scrollY = useSharedValue(0)
const updateScrollY = React.useCallback(
(event) => {
'worklet'
scrollY.value = event.contentOffset.y
},
[scrollY]
)
const scrollHandler = useAnimatedScrollHandler({
onScroll: (event) => runOnJS(updateScrollY)(event)
})
return { scrollY, scrollHandler }
}
export default useVerticalScrollHandler This still doesn't fix the problem. Edit 3: I have stripped the app down to a single page where I have a button to hide and show some text with an animation
The code is simply const TestingAnimation = () => {
const [show, setShow] = React.useState(true)
return (
<TouchableOpacity onPress={() => setShow((s) => !s)}>
{show ? (
<Animated.View entering={FadeIn} exiting={FadeOut} layout={Layout}>
<Text>Testing Animation Header</Text>
</Animated.View>
) : null}
</TouchableOpacity>
)
} which sits inside a React Navigation |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Finally fixed this. Anybody having this problem should look at their sub-deps. I had a library importing a different version of redash which was messing with a patch I had written which was being properly applied but still messing with reanimated |
Beta Was this translation helpful? Give feedback.
Finally fixed this. Anybody having this problem should look at their sub-deps. I had a library importing a different version of redash which was messing with a patch I had written which was being properly applied but still messing with reanimated