Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

(feature) EventTarget API on host elements

Đang mở
#37 0 bình luận 4 reaction 0 người được giao Xem trên GitHub

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
25/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
javascript, react-native
Lĩnh vực
mobile-dev

Hướng nghiên cứu

Bắt đầu bằng cách đọc phần thảo luận hiện có về EventTarget, addEventListener và removeEventListener, sau đó xem xét các event emitter, API duyệt cây và hệ thống sự kiện React Native được đề cập trong issue. Xác định liệu việc triển khai nên là một polyfill hay được tích hợp vào React Native, bao gồm timing tương thích với W3C, payload và hành vi capture/bubble; được xem là hoàn tất khi các phần tử host hỗ trợ API một cách nhất quán.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

cannot polyfill feature
Describe the feature request

The EventTarget interface is implemented by objects that can receive events and may have listeners for them. Native does not currently support this API on host elements.

Previously we had introduced a prototype implementation of addEventListener and removeEventListener in React Native, but it was removed as it needs to be reimplemented properly and integrated with broader changes to React Native. For example, the events need to conform to W3C standards in terms of timing and event payload.

In the meantime, we may be able to polyfill this API using event emitters and the new traversal APIs, which would allow us to emulate capture/bubble phases of events. But, ideally we'd build this into React Native given it would be more performant and there is already an existing event system.

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của react/react-strict-dom

Tất cả issue của react/react-strict-dom

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.