callstack / callstack/react-native-pager-view
How I make flatlist with pagerview ?
- 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ả
Hello,
I want a flatlist with header with pagerview but I got this error:
`[Encountered an error while measuring a list's offset from its containing VirtualizedList](https://stackoverflow.com/questions/72178734/encountered-an-error-while-measuring-a-lists-offset-from-its-containing-virtual)`
Code:
```
const renderInnerLists = ({ index }) => {
return (
//the pagerview grows to the height of its content, but it is nested inside of the flat list, and it does not cause the flat list to grow.
i + Math.random(1000).toString()}
numColumns={2}
listKey={(item, index) => 'D' + index.toString() + Math.random(1000).toString()}
contentContainerStyle={
s.myGalsContentStyle
}
showsVerticalScrollIndicator={false}
scrollEnabled={false}
/>
i + Math.random(1000).toString()}
listKey={(item, index) => 'S' + index.toString() + Math.random(1000).toString()}
numColumns={2}
contentContainerStyle={
s.myGalsContentStyle
}
showsVerticalScrollIndicator={false}
scrollEnabled={false}
/>
)
}
return (
item.id + Math.random(1000).toString()}
/>
)
```
Hướng dẫn đóng góp
Hướng nghiên cứu
Issue không nêu tên tệp nào trong repository, bài kiểm thử hay entry point. Hãy bắt đầu bằng cách tái hiện ví dụ FlatList và PagerView lồng nhau, sau đó kiểm tra lỗi đo lường được liên kết và cấu trúc component được cung cấp. Để được xem là hoàn tất, cần có lời giải thích được maintainer xác nhận và một cấu hình hoạt động hoặc thay đổi đối với repository.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- javascript, react-native
- Lĩnh vực
- mobile
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 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
- 20/100