Android: TalBack reads style

Aberta
#59,231 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 2 dias

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
50/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
android, react-native
Domínio
accessibility, mobile

Direção de pesquisa

Start with the linked React Native issue #56873 and its referenced patch, then use the mandatory reproducer app to confirm the TalkBack behavior on Android. Trace how text styles are exposed to accessibility when the label is recreated after “Increment ID.” Done means TalkBack reads “Hello, world” normally on both visits with “speak text formatting” enabled.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

Needs: Triage :mag: Platform: Android
Description

On Android, TalkBack reads the style of the underlying text.
Previously this ticket has been opened about it, without a real fix.
This patch is the only thing that seems to be working fine.

Steps to reproduce
  1. Activate talkback, with verbosity high and enable speak text formatting
  2. Open the repro app
  3. Move on the "Hello, world" label
  4. Hear that it is read as Start 63 pixel, color black...
  5. Move again on "Hello, world" label
  6. Hear that is now read normally
  7. Click on Increment ID
  8. Move on the "Hello, world" label
  9. Hear that Start 63 pixel, color black... starts again
React Native Version

0.87.1

Affected Platforms

Runtime - Android

Output of npx @react-native-community/cli info
System:
  OS: macOS 26.7.1
  CPU: (12) arm64 Apple M3 Pro
  Memory: 208.80 MB / 18.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 24.17.0
    path: /Users/ilteoood/.local/state/fnm_multishells/93663_1792501581240/bin/node
  Yarn:
    version: 1.22.22
    path: /Users/ilteoood/.local/state/fnm_multishells/93663_1792501581240/bin/yarn
  npm:
    version: 11.13.0
    path: /Users/ilteoood/.local/state/fnm_multishells/93663_1792501581240/bin/npm
  Watchman:
    version: 2026.10.12.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.16.2
    path: /Users/ilteoood/.rbenv/shims/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 27.0
      - iOS 27.1
      - macOS 27.0
      - tvOS 27.0
      - visionOS 27.0
      - watchOS 27.0
  Android SDK: Not Found
IDEs:
  Android Studio: 2026.2 AI-262.9437.185.2621.16467767
  Xcode:
    version: 27.1/27A9275
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.19
    path: /usr/bin/javac
  Ruby:
    version: 3.4.3
    path: /Users/ilteoood/.rbenv/shims/ruby
npmPackages:
  "@react-native-community/cli":
    installed: 20.2.0
    wanted: 20.2.0
  react:
    installed: 19.2.3
    wanted: 19.2.3
  react-native:
    installed: 0.87.1
    wanted: 0.87.1
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: true
  newArchEnabled: true

info React Native v0.88.0 is now available (your project is running on v0.87.1).
info Changelog: https://github.com/facebook/react-native/releases/tag/v0.88.0
info Diff: https://react-native-community.github.io/upgrade-helper/?from=0.87.1&to=0.88.0
info For more info, check out "https://reactnative.dev/docs/upgrading?os=macos".
Stacktrace or Logs
No logs can to share
MANDATORY Reproducer

https://github.com/ilteoood/rn-accessibility-repro

Screenshots and Videos

https://github.com/user-attachments/assets/bb90d5d6-3147-4586-b62c-779a2fdf8b3b

Linguagem predominante
C++
Estrelas
127k
Forks
25.4k
Merge médio
2d 5h
PRs com merge (30d)
74

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de react/react-native

Todas as issues de react/react-native

Issues semelhantes

Mais issues de C++

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.