react / react/react-native

0.75.4 - 0.80.1 Android 15-16 for StatusBarModule (EdgeToEdge)

Abierto
#48,256 22 comentarios 24 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Component: StatusBar Needs: Attention Needs: Repro Platform: Android
Lenguaje dominante
C++
Estrellas
127k
Forks
25.3k
Merge medio
1 d 23 h
PR fusionados (30 d)
4

Descripción

Description

Your app uses deprecated APIs or parameters for end-to-end display

One or more APIs you use or parameters you set for end-to-end screen and window display have been discontinued in Android 15. Your application uses the following deprecated APIs or parameters:

android.view.Window.getStatusBarColor
android.view.Window.setStatusBarColor

These start from:

com.facebook.react.modules.statusbar.StatusBarModule$setColor$1.runGuarded
com.facebook.react.modules.statusbar.StatusBarModule.getTypedExportedConstants

https://developer.android.com/about/versions/15/behavior-changes-15?hl=tr#edge-to-edge

React Native Version

0.75.4, - 0.80.1

Affected Platforms

Runtime - Android

Output of npx react-native info
System:
  OS: Windows 10 10.0.19045
  CPU: (8) x64 Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
  Memory: 15.45 GB / 31.96 GB
Binaries:
  Node:
    version: 22.9.0
    path: C:\Program Files\nodejs\node.EXE
  Yarn: Not Found
  npm:
    version: 10.9.1
    path: C:\Program Files\nodejs\npm.CMD
  Watchman: Not Found
SDKs:
  Android SDK:
    API Levels:
      - "31"
      - "35"
    Build Tools:
      - 34.0.0
      - 35.0.0
    System Images:
      - android-24 | Google Play Intel x86 Atom
      - android-26 | Google APIs Intel x86 Atom
      - android-27 | Intel x86 Atom
      - android-27 | Google APIs Intel x86 Atom
      - android-27 | Google Play Intel x86 Atom
      - android-28 | Google Play Intel x86 Atom
      - android-34 | Google Play Intel x86_64 Atom
      - android-35 | Google Play Intel x86_64 Atom
      - android-35 | Pre-Release 16 KB Page Size Google Play ARM Intel x86_64
        Atom
    Android NDK: Not Found
  Windows SDK: Not Found
IDEs:
  Android Studio: AI-242.23339.11.2421.12700392
  Visual Studio: Not Found
Languages:
  Java: 17.0.9
  Ruby: Not Found
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.3.1
    wanted: 18.3.1
  react-native:
    installed: 0.75.4
    wanted: 0.75.4
  react-native-windows: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: Not found
  newArchEnabled: Not found

2024-12-17_09-50-22

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

Empieza por com.facebook.react.modules.statusbar.StatusBarModule, especialmente setColor y getTypedExportedConstants, y después lee los cambios vinculados del comportamiento edge-to-edge de Android 15. Determina el manejo compatible de las APIs de la barra de estado notificadas y verifica en Android 15 o 16 que la advertencia de la API obsoleta se haya resuelto sin romper el comportamiento de la barra de estado.

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

Evaluación

Stack tecnológico
android, react-native
Área
mobile
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Tranquilo
Claridad
Necesita aclaración
Aptitud para principiantes
42/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.