SortableGridList does not forward props to its inner ScrollView (inconsistent with SortableList)
Maintainer thường phản hồi trong vòng 1 ngà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
- 78/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- react-native, typescript
- Lĩnh vực
- mobile
Hướng nghiên cứu
Bắt đầu trong src/components/sortableGridList/index.tsx và so sánh việc trích xuất prop cùng ScrollView bên trong với src/components/sortableList/index.tsx. Xác minh API được chọn chuyển tiếp các prop được ScrollView hỗ trợ, bao gồm scrollEnabled, mà không ghi đè các style riêng của component, và xác nhận trường hợp sử dụng thao tác kéo được báo cáo hoạt động.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Description
SortableGridList renders an inner <ScrollView> but does not forward any extra props to it, making it impossible to set props like scrollEnabled, alwaysBounceVertical, showsVerticalScrollIndicator, keyboardShouldPersistTaps, etc. without patching.
This is inconsistent with SortableList, which does spread {...others} onto its internal FlatList:
```js
// src/components/sortableList/index.tsx (9.0.0)
<FlatList {...others} ref={listRef} horizontal={horizontal} data={data} ... />
```
But SortableGridList does not:
```js
// src/components/sortableGridList/index.tsx (9.0.0)
<ScrollView style={listStyle} contentContainerStyle={[styles.listContent, listContentStyle, listColumnWrapperStyle]}>
```
Real-world use case
A short, one-screen "reorder home cards" page where the list fits without scrolling. Enabling scroll causes the inner `ScrollView`'s scroll gesture to compete with the long-press-drag gesture used by `SortableItem`, making drag near the edge unreliable. The expected solution is to pass `scrollEnabled: false` to the inner `ScrollView`. There is currently no API to do this.
We currently maintain a `patch-package` patch against 7.x and confirmed it is still required in 9.0.0:
```diff
const {
itemSpacing = DEFAULT_ITEM_SPACINGS,
- data
- data,
- scrollViewProps = {}
} = others;
...
- <ScrollView contentContainerStyle={[styles.listContent, listContentStyle]}>
- <ScrollView contentContainerStyle={[styles.listContent, listContentStyle]} {...scrollViewProps}>
```
Suggested fix
Either:
- (preferred, matches `SortableList`) Spread `{...others}` onto the inner `ScrollView`, after extracting the props `SortableGridList` itself consumes.
- Or add a dedicated `scrollViewProps?: ScrollViewProps` prop on `SortableGridListProps`.
Happy to open a PR if the maintainers indicate a preferred approach.
Affected versions
At least 7.12.0 → 9.0.0 (latest at time of writing).
- Ngôn ngữ chính
- TypeScript
- Star
- 7.2k
- Fork
- 749
- Merge trung bình
- 2 ngày 4 giờ
- Pull request đã merge (30 ngày)
- 4
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 wix/react-native-ui-lib
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
wix/react-native-ui-lib#4022 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
RN 0.85.0 StyleSheet.absoluteFillObject is removedCó thể đã có người làm @ChrisJamesC đã nhận 81 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
wix/react-native-ui-lib#3965 · 3 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
asBaseComponent: stale module-level colorScheme prevents re-render on scheme switch backCó thể đã có người làm @huytdps13400 đã nhận 35 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
wix/react-native-ui-lib#3945 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
wix/react-native-ui-lib#4044 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
wix/react-native-ui-lib#4043 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của wix/react-native-ui-lib
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
microsoft/vscode-containers#655 ·
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 77/100
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 72/100
dsh-tauri-desk/deepseek-harness-desktop#1477 · 1 bình luận ·
-
[docs] RELEASE.md: wrong branch name, no check that the prepare PR merged with the right subject, manual publish stepCó thể đã có người làm @albertteoh đã nhận hôm nay. Đang mởdocumentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
jaegertracing/jaeger-ui#4739 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Add: Shop On TV SDĐang mởcheck:passed streams:add
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
Maintainer thường phản hồi trong vòng 1 ngày