Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .agents/skills/mpx2rn/references/rn-script-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -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。 |
Expand Down
4 changes: 1 addition & 3 deletions packages/core/src/platform/createApp.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = (
<StatusBar
translucent
Expand Down
Loading