Would like to run a function when "finish" is called, but not if "skip" was pressed

Đang mở
#293 1 bình luận 3 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
react-native, typescript
Lĩnh vực
mobile

Hướng nghiên cứu

Bắt đầu bằng cách lần theo các điểm vào copilotEvents và currentStep được đề cập trong issue, sau đó theo dõi cách finish và skip được phân biệt. Xác định nơi trạng thái hoàn thành và bỏ qua được cung cấp trong một hướng dẫn nhiều màn hình, đồng thời xác định hành vi có thể quan sát cần thiết để việc điều hướng chỉ diễn ra sau khi hoàn thành. Kiểm tra hành vi bằng các bài kiểm tra event hoặc walkthrough hiện có của dự án, nếu có.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Is your feature request related to a problem? Please describe.
I have an issue with the implementation of copilot. My app is separated across several screens, and after several steps on the first screen I would like to perform navigation to the next and continue the guide there. From there som more steps would be run before another navigation and so on.. But I would also like to implement that if user presses skip, no navigation happens and the guide is instead finished.

Describe the solution you'd like
I'd like some sort of event to be triggered that differentiates between if the copilotsteps have been performed to completion on a page, or if the "skip" button was pressed (i.e if all copilotSteps on a page were followed or not). This way you could have differing logic based on this.

Describe alternatives you've considered
I tried using copilotEvents and currentStep to differentiagte, but because currentStep seems to be set to the last step when pressing skip this did not work.

Teachability, Documentation, Adoption, Migration Strategy
Hope this makes sense to anyone reading this :)

Ngôn ngữ chính
TypeScript
Star
2.4k
Fork
425
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của mohebifar/react-native-copilot

Tất cả issue của mohebifar/react-native-copilot

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.