I use Reanimated 2.4.1.
I tried to do like this:
const scrollEnabled = useAnimatedStyle(false)
return (
<Animated.ScrollView scrollEnabled={scrollEnabled.value}>
....
</Animated.ScrollView>
)
and like this:
const someAnimatedValue = useAnimatedStyle(false);
const animatedProps = useAnimatedProps(() => {
return {
scrollEnabled: someAnimatedValue.value
}
})
return (
<Animated.ScrollView {...animatedProps}>
....
</Animated.ScrollView>
)
but none of this works.