-
Notifications
You must be signed in to change notification settings - Fork 328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ios设备在更新17.6.1后闪退 #870
Comments
我也是使用的xcode 15,但是只是在ios最新17.6版本上会闪退。17.5就不会 |
这可能是由于 iOS 系统更新导致 React Navigation 相关的 API 和行为出现不兼容问题。你的 React Native 和 React Navigation 版本较老,可能存在一些在新系统中无法适配的情况。 问题排查与解决步骤:
// 跳转之前检查 navigationRef.navigate('SomeScreen');
|
在iOS更新了最新系统17.6.1后,点击路由跳转应用就会闪退安卓与之前的版本不会。
我的版本
"@react-navigation/native": "^6.1.18",
"@react -navigation/native-stack": "^6.11.0",
"@react-navigation/stack": "^6.0.11",
"react": "17.0.2",
"react-native": "0.67. 2》,
跳转方式
import { createRef } from 'react';
const navigationRef:any = createRef();
navigationRef?.current?.resetRoot({ index: 0, routes: [{ name: 'Root' }] });
navigationRef?.current?.navigate这些方式都会闪退
The text was updated successfully, but these errors were encountered: