将RN版本从0.63.4升级到0.71.1后,应用程序布局缩小,如下图所示。 我正在使用 Xcode 14.3,在 Rosetta 模拟器
中运行应用程序对于这个问题你有什么想法吗?
Some info about environment
System:
OS: macOS 13.1
CPU: (10) arm64 Apple M1 Pro
Memory: 3.14 GB / 32.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 19.0.0 - ~/.nvm/versions/node/v19.0.0/bin/node
Yarn: 1.22.19 - /opt/homebrew/bin/yarn
npm: 8.19.2 - ~/.nvm/versions/node/v19.0.0/bin/npm
Watchman: 2023.03.13.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.11.3 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1
Android SDK: Not Found
IDEs:
Android Studio: 2021.3 AI-213.7172.25.2113.9123335
Xcode: 14.3/14C18 - /usr/bin/xcodebuild
Languages:
Java: 17.0.5 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 18.2.0 => 18.2.0
react-native: 0.71.1 => 0.71.1
react-native-macos: Not Found
我确实尝试升级以下依赖项的版本:
"@react-navigation/native-stack": "6.9.12",
"@react-navigation/stack": "6.3.16",
"react-native-safe-area-context": "4.5.3",
"react-native-screens": "3.20.0",