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.Textstyle={{ opacity: bInterpolate(visibleAnimation, 0, 1) }}>Hello world!</Animated.Text></>)
Hide text
Hello world!