decord/source/5419_HeaderTitle.js

31 lines
1.1 KiB
JavaScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 5419
// Function ID: 5420
2026-08-06 08:05:19 +00:00
// Name: HeaderTitle
2026-08-15 05:55:55 +00:00
// Dependencies: [17, 21, 1501]
2026-08-06 08:05:19 +00:00
// Exports: HeaderTitle
2026-08-25 06:04:03 +00:00
// Module 5419 (HeaderTitle)
2026-08-24 06:08:38 +00:00
import jsxProd from "jsxProd" /* 21 */;
import createStandardNavigationFactories from "createStandardNavigationFactories" /* 1501 */;
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
2026-08-06 08:05:19 +00:00
({ Animated: obj1, Platform, StyleSheet } = get_ActivityIndicator);
2026-08-24 06:08:38 +00:00
const jsx = jsxProd.jsx;
2026-08-06 08:05:19 +00:00
const styles = StyleSheet.create({ title: { fontSize: 20 } });
export const HeaderTitle = function HeaderTitle(tintColor) {
let text = tintColor.tintColor;
const merged = Object.assign(tintColor, Object.create(null));
2026-08-24 06:08:38 +00:00
let obj = createStandardNavigationFactories;
2026-08-06 08:05:19 +00:00
const theme = obj.useTheme();
obj = { role: "heading", "aria-level": "1", numberOfLines: 1 };
({ colors, fonts } = theme);
const merged1 = Object.assign(merged);
if (undefined === text) {
text = colors.text;
}
const items = [{ color: text }, fonts.medium, title.title, tintColor.style];
obj.style = items;
return <RN.Text role="heading" aria-level="1" numberOfLines={1} />;
};