Is there a way that I can a conditionally use predefined animations in React Native Reanimated? I'm using RNRA 3.
Example
const wasChosen = useSharedValue(false)
const onExit = () => {
wasChosen.value ? ZoomIn : ZoomOut
}
// Panresponder code that changes wasChosen.value to true when moved to a certain position
<Animated.View exiting={onExit} />