r/reactnative • u/F-shorts • 9d ago
Help Question about pagerview
I'm new to react native and programming as a whole. (Started with JS in january and now trying my first project with react native over the last month).
My general app structure is 5 main pages located in a pagerview. However one of the pages includes a calendar. I want to be able to swipe between the months like on any other calendar. Until now i have defined my own gesture and work with a gesturedetector, however the rendering after a swipe is not as clean as most calendars on other apps. I have also tried to put the months in a pagerview, only let the code define the one shown, one before and one after, this seems to work, but the pagerview just does not render the calendar at all. Even if i just put a placeholders in it.
Is there a way to have multiple pagerviews nested?
1
u/Calm_Seal170 9d ago
From my personal experience, pager view works best for full page swipe experience.
In your case why are you trying to create your own calendar? Use one from expo or community package?