Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

(feature) Event props on components

オープン
#38 コメント 4 件 リアクション 9 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
38/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
javascript, react, react-native
領域
frontend, web-dev

調査の方向性

まず、既存の React Native のイベント props と、リクエストで言及されている新しい PointerEvent 実装を確認し、そのタイミングとイベントオブジェクトを Web 標準と比較します。完了条件は、一覧にあるコンポーネントのイベント props が、必要な箇所では同期的な動作で、Web 互換のイベントオブジェクトとともにサポートされ、既存の React Native のユースケースを壊さないことです。

索引モデルが issue の本文から書いたものです。

説明

cannot polyfill feature
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.

主要言語
JavaScript
スター
3.6k
フォーク
208
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

react/react-strict-dom のほかの issue

react/react-strict-dom の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。