接入移动壳安全区布局

Expo 移动壳使用 SafeAreaProvider 和 SafeAreaView 包裹 WebView

新增安全区边界配置和测试

补充移动壳安全区依赖检查和架构文档
This commit is contained in:
2026-06-18 08:14:27 +08:00
parent 94046153c6
commit 94a866b48b
9 changed files with 76 additions and 27 deletions

17
package-lock.json generated
View File

@@ -32,6 +32,7 @@
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-native": "^0.86.0",
"react-native-safe-area-context": "^5.8.0",
"react-native-webview": "^13.16.1",
"three": "^0.184.0",
"vite": "^6.2.0"
@@ -9975,6 +9976,16 @@
}
}
},
"node_modules/react-native-safe-area-context": {
"version": "5.8.0",
"resolved": "https://registry.npmjs.org/react-native-safe-area-context/-/react-native-safe-area-context-5.8.0.tgz",
"integrity": "sha512-t+ZsAVzY/wWzzx34vqGbo3/as9EEESJdbyZNL7Yg5EYX+toYMtMqFoDDCvqZUi35eeGVsXc6pAaEk4edMwbuCQ==",
"license": "MIT",
"peerDependencies": {
"react": "*",
"react-native": "*"
}
},
"node_modules/react-native-webview": {
"version": "13.16.1",
"resolved": "https://registry.npmjs.org/react-native-webview/-/react-native-webview-13.16.1.tgz",
@@ -19870,6 +19881,12 @@
}
}
},
"react-native-safe-area-context": {
"version": "5.8.0",
"resolved": "https://registry.npmjs.org/react-native-safe-area-context/-/react-native-safe-area-context-5.8.0.tgz",
"integrity": "sha512-t+ZsAVzY/wWzzx34vqGbo3/as9EEESJdbyZNL7Yg5EYX+toYMtMqFoDDCvqZUi35eeGVsXc6pAaEk4edMwbuCQ==",
"requires": {}
},
"react-native-webview": {
"version": "13.16.1",
"resolved": "https://registry.npmjs.org/react-native-webview/-/react-native-webview-13.16.1.tgz",