react / react/react-native

[ScrollView] Large text content is not scrollable with hardware keyboard in iOS(repro provided)

Abierto
#52,833 8 comentarios 3 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

API: Keyboard Component: ScrollView Issue: Author Provided Repro Platform: iOS Type: Enhancement
Lenguaje dominante
C++
Estrellas
127k
Forks
25.3k
Merge medio
1 d 23 h
PR fusionados (30 d)
4

Descripción

Description

This issue is only observed on iOS.

When the content of the ScrollView is large enough to become scrollable and there are no focusable elements inside of it like buttons or form fields, the user can't scroll the content via hardware keyboard's up and down arrow keys.

I've found this as well which might be useful -> https://developer.apple.com/documentation/UIKit/UIScrollView/allowsKeyboardScrolling

Steps to reproduce
  1. Clone the repro.
  2. Install dependencies.
  3. Run iOS with npm run ios or yarn ios
  4. Go to simulator Settings, Accessibility, Keyboards & Typing, Full Keyboard Access, switch to ON.
  5. Go to ReproducerApp.
  6. Try to scroll the content with Hardware Keyboard's up and down arrow keys and observe that nothing is happening.
React Native Version

0.79.4

Affected Platforms

Runtime - iOS

Output of npx @react-native-community/cli info
System:
  OS: macOS 15.5
  CPU: (10) arm64 Apple M1 Max
  Memory: 418.52 MB / 64.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 18.20.5
    path: ~/.nvm/versions/node/v18.20.5/bin/node
  Yarn:
    version: 1.22.22
    path: ~/.nvm/versions/node/v18.20.5/bin/yarn
  npm:
    version: 10.8.2
    path: ~/.nvm/versions/node/v18.20.5/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 24.5
      - iOS 18.5
      - macOS 15.5
      - tvOS 18.5
      - visionOS 2.5
      - watchOS 11.5
  Android SDK: Not Found
IDEs:
  Android Studio: 2024.2 AI-242.23726.103.2422.13016713
  Xcode:
    version: 16.4/16F6
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.10
    path: /usr/bin/javac
  Ruby:
    version: 3.1.6
    path: /opt/homebrew/opt/ruby@3.1/bin/ruby
npmPackages:
  "@react-native-community/cli":
    installed: 19.1.1
    wanted: 19.1.1
  react:
    installed: 19.1.0
    wanted: 19.1.0
  react-native:
    installed: 0.79.4
    wanted: 0.79.4
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: true
  newArchEnabled: true
Stacktrace or Logs
No crash.
MANDATORY Reproducer

https://github.com/filip-angelov/reproducer-scroll-view-issue

Screenshots and Videos

No response

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Línea de trabajo

Comienza con el reproductor vinculado y ejecútalo con npm run ios o yarn ios; activa Full Keyboard Access en el simulador y confirma el fallo de las teclas de flecha. Lee la ruta de React Native ScrollView para iOS junto con la documentación de UIKit sobre UIScrollView.allowsKeyboardScrolling. Se considera terminado cuando el contenido grande de ScrollView sin elementos secundarios enfocables se puede desplazar con las teclas de flecha arriba y abajo del teclado físico.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
ios, react-native
Área
mobile
Tipo de issue
Error
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
48/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.