iOS "onChange" is not getting invoked with react native new architecture enabled

オープン
#995 コメント 8 件 リアクション 6 件 担当者 0 名 GitHub で見る

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
52/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
ios, javascript, react-native
領域
mobile

調査の方向性

Start by reading the target-action setup in ios/RNDateTimePicker.m around lines 29–31, then trace how the picker handles changes with React Native 0.79.2’s new architecture enabled. Reproduce the issue using the provided spinner example on iOS 18.x; done means onChange fires when the date or time changes with the new architecture enabled.

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

説明

Summary

(iOS) On change of date and time, onChange is not getting invoked when using with react native version 0.79.2 where react native new architecture is enabled.

Reproducible sample code

  onDateTimeChange = (_, dateTime) => {
    // Not getting invoked
  };
      <RNDateTimePicker
        display="spinner"
        value={selectedDateTime}
        minimumDate={MIN_DATE}
        maximumDate={MAX_DATE}
        mode={'datetime'}
        onChange={this.onDateTimeChange}
        timeZoneOffsetInMinutes={timezoneOffset}
      />

Steps to reproduce

  1. Integrate this library with RN version 0.79.2
  2. Open the Date time picker and change the date by spinning

Describe what you expected to happen:

  1. onDateTimeChange should be invoked

Environment info

datetimepicker version: 8.4.3
iOS version: 18.x
React Native version: 0.79.2

Problem: After some investigation found that this is because target action has been enabled only when react native new architecture is disabled.

主要言語
JavaScript
スター
2.9k
フォーク
459
平均マージ
4日 16時間
マージ済み PR(30日)
5

環境構築

はじめの一歩

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

react-native-datetimepicker/datetimepicker のほかの issue

react-native-datetimepicker/datetimepicker の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

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

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