Expo iOS应用切后台返回后页面全量重载问题求助
Expo iOS 应用切后台返回后触发全量重载问题
我的Expo iOS应用存在一个仅iOS端出现的Bug:当在任意页面切换到iOS主屏幕,返回应用后有时会触发页面全量重载——所有useState变量恢复初始值,图片重新加载(会短暂消失)。已通过测试排除页面代码问题,推测是依赖包导致。
以下是项目的依赖配置:
{ "@bugsnag/expo": "^49.0.0", "@notifee/react-native": "^7.8.0", "@react-native-async-storage/async-storage": "1.18.2", "@react-native-community/netinfo": "^9.4.1", "@react-native-firebase/app": "^18.2.0", "@react-native-firebase/auth": "^18.2.0", "@react-navigation/bottom-tabs": "^6.5.4", "@react-navigation/native": "^6.1.1", "@react-navigation/stack": "^6.3.10", "@shopify/flash-list": "1.4.3", "@types/jest": "^29.2.4", "@types/node": "^18.11.17", "@types/react": "~18.2.14", "@types/react-dom": "~18.0.10", "@types/react-native": "^0.70.8", "axios": "^1.4.0", "base-64": "^1.0.0", "expo": "^49.0.3", "expo-application": "~5.3.0", "expo-av": "~13.4.1", "expo-background-fetch": "~11.3.0", "expo-blur": "~12.4.1", "expo-build-properties": "~0.8.3", "expo-constants": "~14.4.2", "expo-crypto": "~12.4.1", "expo-dev-client": "~2.4.6", "expo-device": "~5.4.0", "expo-linear-gradient": "~12.3.0", "expo-notifications": "~0.20.1", "expo-permissions": "~14.2.1", "expo-splash-screen": "~0.20.5", "expo-status-bar": "~1.6.0", "expo-system-ui": "~2.4.0", "expo-task-manager": "~11.3.0", "expo-updates": "~0.18.11", "firebase": "^10.0.0", "firebase-tools": "^12.4.4", "jquery": "^3.6.3", "react": "18.2.0", "react-native": "0.72.3", "react-native-gesture-handler": "~2.12.0", "react-native-google-mobile-ads": "^12.3.0", "react-native-purchases": "^7.2.0", "react-native-safe-area-context": "^4.7.1", "react-native-screens": "~3.22.0", "react-native-svg": "13.9.0" }
内容的提问来源于stack exchange,提问作者FlavioBucciarelli
相关产品推荐
相关产品推荐

