From 2a72f25c182d86e5673491af7d185b5b76d882e9 Mon Sep 17 00:00:00 2001 From: zhuzhh Date: Fri, 22 Nov 2024 11:47:52 +0800 Subject: [PATCH] feat: fix code --- .../core/src/platform/patch/react/getDefaultOptions.ios.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/src/platform/patch/react/getDefaultOptions.ios.js b/packages/core/src/platform/patch/react/getDefaultOptions.ios.js index 28bee5fa9..02e42f597 100644 --- a/packages/core/src/platform/patch/react/getDefaultOptions.ios.js +++ b/packages/core/src/platform/patch/react/getDefaultOptions.ios.js @@ -456,10 +456,10 @@ export function getDefaultOptions ({ type, rawOptions = {}, currentInject }) { headerTintColor: pageConfig.navigationBarTextStyle || 'white' }) if (__mpx_mode__ === 'android') { - ReactNative.StatusBar.setBarStyle(pageConfig.barStyle || 'dark-content') // 控制statusbar背景颜色 + ReactNative.StatusBar.setBarStyle(pageConfig.barStyle || 'dark-content') ReactNative.StatusBar.setTranslucent(isCustom) // 控制statusbar是否占位 const color = isCustom ? 'transparent' : pageConfig.statusBarColor - color && ReactNative.StatusBar.setBackgroundColor(color) // 控制statusbar背景颜色 + color && ReactNative.StatusBar.setBackgroundColor(color) } }, [])