bInterpolate(node: Node, from: Node, to: Node): Node

Interpolate the node from 0 to 1 without clamping.

const [isVisible, setVisible] = useState(true)
const visibleAnimation = useTransition(isVisible)
return (
<>
<Button onPress={() => setVisible(!isVisible)}>
{isVisible ? 'Hide text' : 'Show text'}
</Button>
<Animated.Text
style={{ opacity: bInterpolate(visibleAnimation, 0, 1) }}
>
Hello world!
</Animated.Text>
</>
)
Hide text
Hello world!