Ambiguity on why the index property in ViewToken is marked optional
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 38/100
- Loại issue
- Tài liệu
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- react-native
- Lĩnh vực
- documentation
Hướng nghiên cứu
Bắt đầu với trang ViewToken trong tài liệu React Native và xem phần mô tả thuộc tính index tùy chọn của nó. Xem lại cách ViewToken được callback onViewableItemsChanged sử dụng trong VirtualizedList, FlatList và SectionList, sau đó xác nhận tình huống cho phép index là null. Cập nhật phần mô tả thuộc tính để giải thích tình huống đó và kiểm tra tài liệu đã được render.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Description
On the ViewToken page in the docs it shows that the index property is optional. This is not explained in any further detail by the docs.
What is the problem?
It is unclear to me in what situation this property would be null. This object is used as a parameter for the onViewableItemsChanged callback in VirtualizedList so it is in turn also used in both FlatList and SectionList. This makes me think there wouldn't be a situation where index would be null.
How can we address it?
Update the description of the index property on ViewToken to clarify in what situation it could be null.
If anyone knows a resource like an issue in the react-native repo or a from post that discusses this or can explain it to me I can also make a PR to clarify the description on the property.
Why is it important?
It is currently ambiguous why the index property on ViewToken is marked as optional.
Who needs this?
Anyone using the onViewableItemsChanged prop and relies on the indexes of the callback.
- Ngôn ngữ chính
- MDX
- Star
- 2.2k
- Fork
- 6.3k
- Merge trung bình
- 15 giờ 31 phút
- Pull request đã merge (30 ngày)
- 20
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của react/react-native-website
-
Fix incorrect useAnimatedValue usage in Animated documentationCó thể đã có người làm @Simek đã nhận hôm nay. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
react/react-native-website#5263 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
react/react-native-website#5258 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Docs: distinguish Fast Refresh effect reruns from Strict Mode checksCó thể đã có người làm @walitemuri đã nhận 23 ngày trước. Đang mở
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 88/100
react/react-native-website#5217 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Integration with Existing Apps: Podfile example does not use `use_react_native!`, is incompleteCó thể đã có người làm @mhjacobson đã nhận 1700 ngày trước. Đang mở👋 Good first issue
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
react/react-native-website#2958 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 30/100
react/react-native-website#5259 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của react/react-native-website
Issue tương tự
-
changelog investigate
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
ramnes/notion-sdk-py#408 ·
-
triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
github/docs#46222 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 72/100
peteonrails/voxtype#844 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement priority:low ready-for-dev
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Add a mail symbolĐang mởenhancement good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100