|
|
@@ -72,12 +72,9 @@ export const getCapsuleBarInfo = () => {
|
|
|
* @returns {{topHeight: number, bottomHeight: number, statusBarHeight: number, capsuleBarHeight: number, capsuleBarLeft: number, capsuleBarMarginTop: number, capsuleBarMarginBottom: number, capsuleBarContentHeight: number}}
|
|
|
*/
|
|
|
export const getSafeArea = () => {
|
|
|
- // TODO 测试代码待删除
|
|
|
- console.log("safeArea出发啦啦啦");
|
|
|
let tempSafeArea = getCapsuleBarInfo();
|
|
|
tempSafeArea.statusBarHeight = getStatusBarHeight();
|
|
|
tempSafeArea.bottomHeight = SYSTEM_INFO.safeAreaInsets.bottom || 0;
|
|
|
tempSafeArea.topHeight = getStatusBarHeight() + tempSafeArea.capsuleBarHeight;
|
|
|
- console.log("safeArea", tempSafeArea);
|
|
|
return tempSafeArea;
|
|
|
}
|