diff --git a/.agents/skills/mpx2rn/references/rn-script-reference.md b/.agents/skills/mpx2rn/references/rn-script-reference.md index e6ec76815e..0ede3936c4 100644 --- a/.agents/skills/mpx2rn/references/rn-script-reference.md +++ b/.agents/skills/mpx2rn/references/rn-script-reference.md @@ -718,7 +718,6 @@ Mpx.config.rnConfig = { | `openTypeHandler` | 对象,注册 `button` 组件在 RN 上 `open-type` 的容器侧实现,未注册对应键时点击会告警。 | | `openTypeHandler.onShareAppMessage` | 对应模板中 `open-type="share"`:框架会先取当前页 `onShareAppMessage` 的返回(含与默认 `title` / `path` 的合并及可选 `promise` 异步结果),再调用本回调,入参为 `{ title, path, imageUrl? }`,由宿主调起系统分享等能力。 | | `openTypeHandler.onUserInfo` | 对应模板中 `open-type="getUserInfo"`:由宿主实现获取用户信息的逻辑,结果需满足按钮侧对 `bindgetuserinfo` 的约定(以 `@mpxjs/webpack-plugin` 中 `mpx-button` 运行时为准)。 | -| `statusBarTranslucent` | 影响 Stack `screenOptions` 中状态栏相关配置。 | | `getBottomVirtualHeight` | Android 底部虚拟区域高度修正。 | | `loadChunkAsync` | 异步分包加载实现。 | | `downloadChunkAsync` | 分包下载实现,用于实现 preloadRule。 | diff --git a/packages/core/src/platform/createApp.ios.js b/packages/core/src/platform/createApp.ios.js index b6cc29f464..274c7eb820 100644 --- a/packages/core/src/platform/createApp.ios.js +++ b/packages/core/src/platform/createApp.ios.js @@ -212,9 +212,7 @@ export default function createApp (options) { const { initialRouteName, initialParams } = initialRouteRef.current const navScreenOpts = { - headerShown: false, - statusBarTranslucent: Mpx.config.rnConfig.statusBarTranslucent ?? true, - statusBarBackgroundColor: 'transparent' + headerShown: false } return createElement(SafeAreaProvider, diff --git a/packages/webpack-plugin/lib/runtime/components/react/mpx-nav.tsx b/packages/webpack-plugin/lib/runtime/components/react/mpx-nav.tsx index e81e0212ef..fd0eb4afd0 100644 --- a/packages/webpack-plugin/lib/runtime/components/react/mpx-nav.tsx +++ b/packages/webpack-plugin/lib/runtime/components/react/mpx-nav.tsx @@ -95,7 +95,7 @@ const MpxNav = memo(({ pageConfig, navigation }: MpxNavProps) => { } const isCustom = innerPageConfig.navigationStyle === 'custom' const navigationBarTextStyle = useMemo(() => validBarTextStyle(innerPageConfig.navigationBarTextStyle), [innerPageConfig.navigationBarTextStyle]) - // 状态栏的颜色 + // 状态栏由 MpxNav 根据页面配置统一控制,避免 native-stack screenOptions 在页面切换时覆盖页面级配置。 const statusBarElement = (