@klyftig/mobile-ui 1.8.0 → 1.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@klyftig/mobile-ui",
3
- "version": "1.8.0",
3
+ "version": "1.9.0",
4
4
  "scripts": {
5
5
  "test": "jest",
6
6
  "sync": "bash scripts/sync-to-kaelo.sh",
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { View, Text, TouchableOpacity, StyleSheet, StyleProp, ViewStyle } from 'react-native';
2
+ import { View, Text, TouchableOpacity, StyleSheet, StyleProp, TextStyle, ViewStyle } from 'react-native';
3
3
  import { MaterialCommunityIcons as Icon } from '@expo/vector-icons';
4
4
  import { useSafeAreaInsets } from 'react-native-safe-area-context';
5
5
  import { useTheme } from '../hooks/useTheme';
@@ -17,6 +17,8 @@ export interface ScreenHeaderProps {
17
17
  /** Render below the title row — e.g. a tab bar or period toggle that should stay pinned with the header. */
18
18
  below?: React.ReactNode;
19
19
  style?: StyleProp<ViewStyle>;
20
+ /** Merged over the title's own style — e.g. an app's display (serif) face. */
21
+ titleStyle?: StyleProp<TextStyle>;
20
22
  }
21
23
 
22
24
  /**
@@ -30,6 +32,7 @@ export function ScreenHeader({
30
32
  leftIcon = 'home-outline',
31
33
  leftAccessibilityLabel = 'Go to Dashboard',
32
34
  onLeftPress,
35
+ titleStyle,
33
36
  right,
34
37
  below,
35
38
  style,
@@ -55,7 +58,7 @@ export function ScreenHeader({
55
58
  </View>
56
59
  <View style={styles.center}>
57
60
  <Text
58
- style={[styles.title, { color: colors.text.primary }]}
61
+ style={[styles.title, { color: colors.text.primary }, titleStyle]}
59
62
  numberOfLines={1}
60
63
  >
61
64
  {title}