callstack / callstack/react-native-pager-view
How to use Pager View combined with a Drawer?
- Ngôn ngữ chính
- TypeScript
- Star
- 3.4k
- Fork
- 476
- Merge trung bình
- 10 ngày 21 giờ
- Pull request đã merge (30 ngày)
- 2
Mô tả
I have a Drawer navigation setup with React Navigation (swipe edge width is set to the full width of the screen). In one of the routes I use Pager View. Let’s say I have 2 pages in the Pager View. Here is what I want to happen:
If I’m at the first page and I’m doing a swipe right gesture (to open the drawer), I want the drawer to open. If I’m doing a swipe left on the first page it should take me to the second page (like it normally does).
If I’m on the second page, swipe right should take me to the first page like usual but without opening the drawer.
I looked around but couldn’t find a way to get this done. Can you help? I’m not sure if this is the right place to ask this but there it goes.
Hướng dẫn đóng góp
Hướng nghiên cứu
Không có tệp, bài kiểm thử hoặc điểm vào nào được nêu tên. Hãy bắt đầu bằng cách tái hiện tương tác với React Navigation Drawer và Pager View bằng hành vi cử chỉ hai trang được mô tả; công việc được xem là hoàn tất khi xác định và ghi lại hoặc triển khai được mức độ ưu tiên của cử chỉ giữa việc mở drawer và chuyển trang.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- react-native, typescript
- Lĩnh vực
- mobile
- Loại issue
- Tính năng
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 25/100