接入移动壳安全区布局

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
@@ -0,0 +1,14 @@
import { describe, expect, test } from 'vitest';
import { MOBILE_SHELL_SAFE_AREA_EDGES } from './mobileShellSafeArea';
describe('mobile shell safe area', () => {
test('protects the WebView from every device edge', () => {
expect(MOBILE_SHELL_SAFE_AREA_EDGES).toEqual([
'top',
'right',
'bottom',
'left',
]);
});
});