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
Is there a way to trigger the transition when the screen is press, similar to Instagram stories
The text was updated successfully, but these errors were encountered:
Yes! You can add onPress event and use the this.cube.scrollTo(index) function to go to next and prev views.
this.cube.scrollTo(index)
react-native-3dcube-navigation/examples/components/CubeHorizontal.js
Line 25 in badbcfb
Sorry, something went wrong.
If its a functional component
function xyz () { const pageNum =2, shouldAnimate = true; let cube = useRef(); . . . . function somFunction = () { . . . cube.current.scrollTo(pageNum, shouldAnimate); . . . }
return ( <CubeNavigationHorizontal key={0} ref={(view) => { cube.current = view; }}> . . . . . ); }
No branches or pull requests
Is there a way to trigger the transition when the screen is press, similar to Instagram stories
The text was updated successfully, but these errors were encountered: