Unable to use with SectionList

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

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

Đánh giá

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

Hướng nghiên cứu

Tái hiện lỗi với react-native SectionList bằng cách sử dụng props.start(false, refSectionList.current). Bắt đầu với lệnh gọi scrollView.scrollTo được hiển thị trong lỗi và xác minh cách ref của SectionList được truyền vào. Hoàn tất khi lệnh gọi không còn gây ra TypeError và thao tác cuộn hoạt động.

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

Mô tả

When used with react-native SectionList and called with ref to enable scrolling like:
props.start(false, refSectionList.current); - getting a TypeError as below;

TypeError: scrollView.scrollTo is not a function. (In 'scrollView.scrollTo({ y: yOffsett, animated: false })', 'scrollView.scrollTo' is undefined) at node_modules/react-native/Libraries/Core/ExceptionsManager.js:104:6 in reportException at node_modules/react-native/Libraries/Core/ExceptionsManager.js:171:19 in handleException at node_modules/react-native/Libraries/Core/setUpErrorHandling.js:24:6 in handleError at node_modules/expo-error-recovery/build/ErrorRecovery.fx.js:12:21 in ErrorUtils.setGlobalHandler$argument_0

React-Native SectionList Inherits ScrollView Props since it's a wrapper around , and thus inherits its props (as well as those of ), so I believe this should work? @mohebifar

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.