rtl to ltr not working on latest version(0.77) until manual refresh
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- C++
- Estrellas
- 127k
- Forks
- 25.3k
- Merge medio
- 1 d 23 h
- PR fusionados (30 d)
- 4
Descripción
Description
setTimeout(() => {
I18nManager.forceRTL(true);
RNRestart.Restart();
}, 200);
the same code worked on previous versions but when I updated my latest code to latest version 0.77 not working properly
"react-native-restart": "^0.0.27",
"react-native": "0.77",
Steps to reproduce
setTimeout(() => {
I18nManager.forceRTL(true);
RNRestart.Restart();
}, 200);
the same code worked on previous versions but when I updated my latest code to latest version 0.77 not working properly
"react-native-restart": "^0.0.27",
"react-native": "0.77",
React Native Version
0.77
Affected Platforms
Runtime - Android, Runtime - iOS
Output of npx @react-native-community/cli info
warn Package react-native-sqlite-storage contains invalid configuration: "dependency.platforms.ios.project" is not allowed. Please verify it's properly linked using "npx react-native config" command and contact the package maintainers about this.
info Fetching system and libraries information...
System:
OS: macOS 15.2
CPU: (10) arm64 Apple M4
Memory: 743.67 MB / 16.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 23.6.1
path: /opt/homebrew/bin/node
Yarn:
version: 1.22.22
path: /opt/homebrew/bin/yarn
npm:
version: 10.9.2
path: ~/Desktop/tf-app/node_modules/.bin/npm
Watchman:
version: 2024.12.02.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods:
version: 1.16.2
path: /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 24.2
- iOS 18.2
- macOS 15.2
- tvOS 18.2
- visionOS 2.2
- watchOS 11.2
Android SDK: Not Found
IDEs:
Android Studio: Not Found
Xcode:
version: 16.2/16C5032a
path: /usr/bin/xcodebuild
Languages:
Java:
version: 17.0.14
path: /usr/bin/javac
Ruby:
version: 2.6.10
path: /usr/bin/ruby
npmPackages:
"@react-native-community/cli":
installed: 15.0.1
wanted: 15.0.1
react:
installed: 18.3.1
wanted: ^18.3.1
react-native:
installed: 0.77.0
wanted: ^0.77.0
react-native-macos: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: true
newArchEnabled: true
iOS:
hermesEnabled: true
newArchEnabled: true
info React Native v0.77.1 is now available (your project is running on v0.77.0).
info Changelog: https://github.com/facebook/react-native/releases/tag/v0.77.1
info Diff: https://react-native-community.github.io/upgrade-helper/?from=0.77.0&to=0.77.1
info For more info, check out "https://reactnative.dev/docs/upgrading?os=macos".
asifraza@Asifs-Mac-mini tf-app %
Stacktrace or Logs
-
Reproducer
Screenshots and Videos
setTimeout(() => {
I18nManager.forceRTL(true);
RNRestart.Restart();
}, 200);
the same code worked on previous versions but when I updated my latest code to latest version 0.77 not working properly
"react-native-restart": "^0.0.27",
"react-native": "0.77",
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Comience con los puntos de entrada I18nManager.forceRTL(true) y RNRestart.Restart() en React Native 0.77, comparando su comportamiento con el de la versión anterior en Android e iOS. Una investigación completa debería explicar por qué RTL solo tiene efecto después de una actualización manual y verificar el comportamiento con un ejemplo reproducible.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- javascript, react-native
- Área
- internationalization, 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
- 35/100