描述
当我将语言切换为英语时,I18nManager.allowRTL(false);和I18nManager.forceRTL(false);不起作用,当设备语言设置为阿拉伯语或从右到左的语言时。
重现步骤
- 将设备语言设置为阿拉伯语
- 打开应用程序
- 将语言切换为英语
- I18nManager.isRTL始终为true
React Native版本
0.72.4
受影响的平台
运行时-Android
npx react-native info
的输出
System:
OS: macOS 14.3
CPU: (10) arm64 Apple M1 Pro
Memory: 63.81 MB / 16.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 21.7.1
path: /opt/homebrew/bin/node
Yarn:
version: 1.22.21
path: /opt/homebrew/bin/yarn
npm:
version: 10.5.0
path: /opt/homebrew/bin/npm
Watchman:
version: 2024.03.18.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods:
version: 1.13.0
path: /Users/fawziakef/.rvm/gems/ruby-2.7.4/bin/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 23.2
- iOS 17.2
- macOS 14.2
- tvOS 17.2
- visionOS 1.0
- watchOS 10.2
Android SDK: Not Found
IDEs:
Android Studio: 2023.2 AI-232.10300.40.2321.11567975
Xcode:
version: 15.2/15C500b
path: /usr/bin/xcodebuild
Languages:
Java:
version: 17.0.10
path: /usr/bin/javac
Ruby:
version: 2.7.4
path: /Users/fawziakef/.rvm/rubies/ruby-2.7.4/bin/ruby
npmPackages:
"@react-native-community/cli": Not Found
react:
installed: 18.2.0
wanted: 18.2.0
react-native:
installed: 0.72.4
wanted: 0.72.4
react-native-macos: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: false
newArchEnabled: false
iOS:
hermesEnabled: true
newArchEnabled: false
堆栈跟踪或日志
No crash or failure
重现者
https://github.com/react-native-community/reproducer-react-native
5条答案
按热度按时间ztyzrc3y1#
e4yzc0pl2#
yquaqz183#
pgpifvop4#
w7t8yxp55#
@fawzi-shiyyab19 失踪的复制者