(feature) Event props on components
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 38/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- javascript, react, react-native
Hướng nghiên cứu
Bắt đầu bằng việc xem xét các event props hiện có của React Native và implementation mới của PointerEvent được đề cập trong request, sau đó so sánh timing và các event object của chúng với các web standard. Công việc được xem là hoàn tất khi các event props của component được liệt kê được hỗ trợ với hành vi đồng bộ ở những nơi cần thiết và các event object tương thích với web, mà không làm hỏng các trường hợp sử dụng React Native hiện có.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Describe the feature request
Support web standard event props on all components. This element is not currently supported on native. Although some event props exist in React Native, most of the events are not fired synchronously and/or at the right time, and the event objects themselves do not match web standards (apart from the new PointerEvent implementation).
- onAuxClick
- onBeforeInput (input)
- onBeforeInput (select)
- onBeforeInput (textarea)
- onBlur
- onChange (input)
- onChange (select)
- onChange (textarea)
- onClick
- onContextMenu
- onCopy
- onCut
- onError (img)
- onFocus
- onGotPointerCapture
- onInput (input)
- onInput (select)
- onInput (textarea)
- onInvalid (input)
- onInvalid (select)
- onInvalid (textarea)
- onKeyDown
- onKeyUp
- onLoad (img)
- onLostPointerCapture
- onPaste
- onPointerCancel
- onPointerDown
- onPointerEnter
- onPointerLeave
- onPointerMove
- onPointerOut
- onPointerOver
- onPointerUp
- onSelect
- onSelectionChange
One way to approach this could be to introduce new, synchronous event props in React Native (e.g., onKeyDownSync) that do not require changes to the existing event props. There has been interest in doing this for existing RN use cases beyond web compability. RSD could then use these new props (and rename them in the user-space layer for now) to provide events and event objects that match web.
- Ngôn ngữ chính
- JavaScript
- Star
- 3.6k
- Fork
- 206
- 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
- Đọ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-strict-dom
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
react/react-strict-dom#467 · 1 bình luận ·
-
Missing disabled propĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
react/react-strict-dom#465 · 2 bình luận ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
react/react-strict-dom#520 ·
-
css.defineVars() with kebab-case keys warns unrecognized custom property and fails to resolveĐang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 35/100
react/react-strict-dom#505 · 2 reaction ·
-
bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 62/100
react/react-strict-dom#491 · 4 bình luận ·
Tất cả issue của react/react-strict-dom
Issue tương tự
-
Mend: dependency security vulnerability untriaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
opensearch-project/security-dashboards-plugin#2543 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[quality] refresh-radar-reports.yml runs on ubuntu-latest while every other job pins ubuntu-24.04Đang mởagent/quality hive/hosted-available-lke648397-260827-5n31 quality testing
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 90/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 65/100
godotengine/godot-website#1432 ·
-
Add: Mooz RetroĐang mởchannels:add check:passed
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
Maintainer thường phản hồi trong vòng 1 ngày