react / react/react-native

TextInput with keyboardType="numeric" on iPad switches to the default keyboard when tapped again while focused

オープン
#57,411 コメント 2 件 リアクション 3 件 担当者 0 名 GitHub で見る

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

API: Keyboard Component: Switch Component: TextInput Needs: Triage :mag:
主要言語
C++
スター
127k
フォーク
25.3k
平均マージ
1日 23時間
マージ済み PR(30日)
4

説明

Description

On iPad, a TextInput configured with keyboardType="numeric" initially displays the numeric keyboard as expected.

However, if the keyboard remains open and the user taps the same TextInput again, iOS switches to the default keyboard instead of keeping the numeric keyboard.

This does not happen on iPhone.

Steps to reproduce
  • Launch the app on an iPad IPad Pro 11-inch (either physical device or simulator).
  • Tap a numerical TextInput.
  • The numeric keyboard is displayed.
  • Without dismissing the keyboard, tap the same TextInput again.
React Native Version

0.86.0

Affected Platforms

Runtime - iOS

Output of npx @react-native-community/cli info
System:
  OS: macOS 26.2
  CPU: (10) arm64 Apple M1 Max
  Memory: 2.17 GB / 64.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 22.23.1
    path: /Users/xxx/.nvm/versions/node/v22.23.1/bin/node
  Yarn:
    version: 1.22.22
    path: /opt/homebrew/bin/yarn
  npm:
    version: 10.9.8
    path: /Users/xxx/.nvm/versions/node/v22.23.1/bin/npm
  Watchman:
    version: 2025.07.21.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.16.2
    path: /opt/homebrew/lib/ruby/gems/3.1.0/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 25.2
      - iOS 26.2
      - macOS 26.2
      - tvOS 26.2
      - visionOS 26.2
      - watchOS 26.2
  Android SDK:
    API Levels:
      - "31"
      - "33"
      - "35"
      - "36"
    Build Tools:
      - 34.0.0
      - 35.0.0
      - 35.0.1
      - 36.0.0
    System Images:
      - android-31 | Google APIs ARM 64 v8a
      - android-31 | Google APIs Intel x86_64 Atom
      - android-31 | Google Play ARM 64 v8a
      - android-31 | Google Play Intel x86_64 Atom
      - android-35 | Google APIs ARM 64 v8a
      - android-35 | Google APIs Intel x86_64 Atom
      - android-35 | Google Play ARM 64 v8a
      - android-35 | Google Play Intel x86_64 Atom
      - android-35 | Google APIs Tablet ARM 64 v8a
      - android-36 | Google Play ARM 64 v8a
      - android-36 | Google Play Intel x86_64 Atom
      - android-36 | Pre-Release 16 KB Page Size Google APIs ARM 64 v8a
    Android NDK: Not Found
IDEs:
  Android Studio: 2024.3 AI-243.24978.46.2431.13363775
  Xcode:
    version: 26.2/17C52
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.15
    path: /usr/bin/javac
  Ruby:
    version: 3.1.7
    path: /opt/homebrew/opt/ruby@3.1/bin/ruby
npmPackages:
  "@react-native-community/cli":
    installed: 20.1.0
    wanted: 20.1.0
  react:
    installed: 19.2.3
    wanted: 19.2.3
  react-native:
    installed: 0.86.0
    wanted: 0.86.0
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: true
  newArchEnabled: true
Stacktrace or Logs
no logs
MANDATORY Reproducer

https://github.com/mBleichnerMagicPlan/DoubleTapInNumericTextInput

Screenshots and Videos

https://github.com/user-attachments/assets/e39cb596-7067-40c7-b87c-25c01d42fd3d

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

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

調査の方向性

まず、iPad で必須の再現手順を実行し、2 回目のタップで数字キーボードが変わることを確認します。その操作に関係する React Native iOS TextInput のキーボード処理を追跡します。iPad で繰り返しタップしても数字キーボードが維持され、iPhone の動作を変更しなければ完了です。

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

評価

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

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

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