fix: settings on alpha 330.1+

This commit is contained in:
cocobo1 2026-05-14 20:06:34 +00:00
parent 727603ff46
commit 61751664c5
2 changed files with 2 additions and 4 deletions

View file

@ -12,8 +12,7 @@ export interface RowConfig {
icon?: ImageURISource | number;
IconComponent?: React.ReactNode,
usePredicate?: () => boolean,
useTrailing?: () => string | JSX.Element,
rawTabsConfig?: Record<string, any>;
useTrailing?: () => string | JSX.Element
}
export const registeredSections = {} as {

View file

@ -29,8 +29,7 @@ export function patchTabsUI(unpatches: (() => void | boolean)[]) {
usePredicate: row.usePredicate,
useTrailing: row.useTrailing,
onPress: wrapOnPress(row.onPress, null, row.render, row.title()),
withArrow: true,
...row.rawTabsConfig
withArrow: true
}
})))
.reduce((a, c) => Object.assign(a, c));