/* eslint-disable react/jsx-key, react-native/no-inline-styles */ import { TextStyle, View, ViewStyle } from "react-native" import { Header } from "@/components/Header" import { Icon } from "@/components/Icon" import { $styles } from "@/theme/styles" import type { ThemedStyle } from "@/theme/types" import { s } from "@/utils/responsive" import { DemoDivider } from "../DemoDivider" import { Demo } from "./types" import { DemoUseCase } from "../DemoUseCase" const $rightAlignTitle: TextStyle = { textAlign: "right", } const $customLeftAction: ThemedStyle = ({ colors }) => ({ backgroundColor: colors.error, flexGrow: 0, flexBasis: s(100), height: "100%", flexWrap: "wrap", overflow: "hidden", }) const $customTitle: ThemedStyle = ({ colors }) => ({ textDecorationLine: "underline line-through", textDecorationStyle: "dashed", color: colors.error, textDecorationColor: colors.error, }) const $customWhiteTitle: ThemedStyle = ({ colors }) => ({ color: colors.palette.neutral100, }) export const DemoHeader: Demo = { name: "Header", description: "demoHeader:description", data: ({ theme, themed }) => [
,
,
{Array.from({ length: 20 }, (x, i) => i).map((i) => ( ))} } safeAreaEdges={[]} /> ,
,
, ], }