接入移动壳安全区布局
Expo 移动壳使用 SafeAreaProvider 和 SafeAreaView 包裹 WebView 新增安全区边界配置和测试 补充移动壳安全区依赖检查和架构文档
This commit is contained in:
@@ -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',
|
||||
]);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user