Files
otunes/apps/mobile/components/screen-header.tsx
T
joshuafhiggins 73c7283d4d Add Expo mobile app and extract shared Convex package
- Replace mobile placeholder with Expo Router app (tabs, playback, auth, library)
- Move Convex backend to @otunes/convex for web and mobile reuse
- Update web app imports and API routes to use shared package
2026-08-02 04:14:01 +00:00

35 lines
796 B
TypeScript

import { StyleSheet, Text, View } from "react-native"
import { spacing, useThemeColors } from "@/lib/theme"
export function ScreenHeader({
title,
right,
}: {
title: string
right?: React.ReactNode
}) {
const colors = useThemeColors()
return (
<View style={[styles.header, { borderBottomColor: colors.border, backgroundColor: colors.background }]}>
<Text style={[styles.title, { color: colors.foreground }]}>{title}</Text>
{right}
</View>
)
}
const styles = StyleSheet.create({
header: {
flexDirection: "row",
alignItems: "center",
justifyContent: "space-between",
paddingHorizontal: spacing.lg,
paddingVertical: spacing.md,
borderBottomWidth: StyleSheet.hairlineWidth,
},
title: {
fontSize: 20,
fontWeight: "700",
},
})