-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
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
Click the button to switch to the new/previous week #96
Comments
Hi @tnghia944, currently, there is no specific way to change pages programatically, other than swiping. As a workaround, you can use
I think using this code would work (being inside |
I'd say we can implement methods to move programatically, something like |
I implemented both methods in a PR: @hoangnm let me know what you think! @tnghia944, for now, you can test this from this branch in my fork 🙂 |
hi @pdpino pd |
Yes, I see the same. The calendar moves to the previous page, but the animation is not smooth. This has to do with this old issue: #39. As a summary:
For now, there is no easy way to fix that in this library 🙁, as this is an issue from react-native |
A comment about smooth vs laggy behavior:
|
hi all
instead of scrolling left to right, can i click on the button to do this
I am currently using goToDate, is that the best way? , when I already know index + 1 / index -1
const dateTarget = moment(currentMoment).add(isNext ? 1 : -1, 'w')
this.goToDate(dateTarget);
The text was updated successfully, but these errors were encountered: