[Bug?] ModalBottomSheet loses contexts
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ó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 45/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá 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
Start by tracing the ModalBottomSheet path used when nativeOverlay is false, focusing on the custom in-library Portal implementation that reparents the sheet. Reproduce the context-loss example, then determine whether context preservation or documenting the limitation is the intended outcome; compare the behavior with react-native-teleport if that alternative is evaluated.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
ModalBottomSheet (when not nativeOverlay) seems to use a custom in-library Portal implementation that reparents the sheet into a different tree, this makes child components/tree unable to use existing context from the tree.
// psuedocode
const Cx = createContext();
const SheetUser = () => {
return (
<Cx value={1}>
<ModalBottomSheet ...>
<Inner />
</ModalBottomSheet>
</Cx>
)
}
const Inner = () => {
const value = useContext(Cx)
// value is always undefined
return ...
}
This should either be documented on the documentation or it could be solved by using a library such as react-native-teleport
PS. I came across this issue while trying to add keyboard avoidance to a nativeOverlay modal sheet, and it does not seem to be really possible - keyboard state is undetectable inside the sheet. Should I make another issue for that?
- Ngôn ngữ chính
- Kotlin
- Star
- 536
- Fork
- 24
- Merge trung bình
- 12 giờ 10 phút
- Pull request đã merge (30 ngày)
- 22
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
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 software-mansion/react-native-bottom-sheet
-
Android: NoSuchElementException in ScrollIndicators.refit when a scroll view is garbage collectedĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
software-mansion/react-native-bottom-sheet#140 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 35/100
software-mansion/react-native-bottom-sheet#137 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Feature request: opt-in native keyboard avoidanceCó thể đã có người làm @Asad-Butt đã nhận 5 ngày trước. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 22/100
software-mansion/react-native-bottom-sheet#134 · 1 bình luận · 2 reaction ·
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 48/100
software-mansion/react-native-bottom-sheet#132 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 52/100
software-mansion/react-native-bottom-sheet#74 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của software-mansion/react-native-bottom-sheet
Issue tương tự
-
Remove Collect againĐang mở
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 86/100
thisisartman/Meguri#211 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
follow-up
Độ khó 1/5 Dưới một 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
-
area:android fleet
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/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 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
emm3000/myGame#2175 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày