We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sample here shows how to use snapTo from a class-based component for starting the animation by a button click.
Is there any other way to use snapTo for Interactable.View inside functional component? If so, could you please provide some sample?
snapTo
Interactable.View
Thanks in advance and thanks for a great work!
The text was updated successfully, but these errors were encountered:
You could useRef, something like this worked for me:
const interactableRef = useRef(null) handlePress = () => { interactableRef.current.snapTo({ x: 0 }) } <Interactable.View ref={interactableRef} ....... > ......... </Interactable.View>
Sorry, something went wrong.
You can also use containerRef.current.snapTo({index: 1});
containerRef.current.snapTo({index: 1});
No branches or pull requests
Sample here shows how to use snapTo from a class-based component for starting the animation by a button click.
Is there any other way to use
snapTo
forInteractable.View
inside functional component? If so, could you please provide some sample?Thanks in advance and thanks for a great work!
The text was updated successfully, but these errors were encountered: