@popp0102/nova 0.9.3 → 0.9.4

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.
@@ -1,4 +1,4 @@
1
- import { StyleSheet } from 'react-native';
1
+ import { StyleSheet, Platform } from 'react-native';
2
2
 
3
3
  export const styles = StyleSheet.create({
4
4
  header: {
@@ -16,14 +16,10 @@ export const styles = StyleSheet.create({
16
16
  },
17
17
  titleContainer: {
18
18
  flex: 1,
19
- alignItems: "center",
19
+ alignItems: Platform.OS === 'ios' ? 'center' : 'flex-start',
20
20
  },
21
21
  rightContent: {
22
22
  width: 80,
23
23
  alignItems: "flex-end",
24
24
  },
25
- subtitleRow: {
26
- alignItems: "center",
27
- marginTop: 4,
28
- },
29
25
  });
@@ -6,17 +6,15 @@ import { styles } from './config';
6
6
 
7
7
  export default function ScreenHeader({
8
8
  title,
9
- subtitle,
10
9
  onBack,
11
10
  rightContent,
12
11
  titleFontFamily,
13
12
  titleColor = "#4A2C0A",
14
- subtitleColor = "#2C1810",
15
13
  backIconColor = "#4A2C0A"
16
14
  }) {
17
15
  const deviceSize = useDeviceSize();
18
- const titleSize = deviceSize === 'small' ? 'h3' : 'h2';
19
- const subtitleSize = deviceSize === 'small' ? 'h6' : 'h5';
16
+ const titleSize = deviceSize === 'small' ? 'h4' : 'h3';
17
+
20
18
  return (
21
19
  <View style={styles.header}>
22
20
  <View style={styles.topRow}>
@@ -34,11 +32,6 @@ export default function ScreenHeader({
34
32
  </View>
35
33
  )}
36
34
  </View>
37
- {subtitle && (
38
- <View style={styles.subtitleRow}>
39
- <Heading size={subtitleSize} color={subtitleColor}>{subtitle}</Heading>
40
- </View>
41
- )}
42
35
  </View>
43
36
  );
44
37
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@popp0102/nova",
3
- "version": "0.9.3",
3
+ "version": "0.9.4",
4
4
  "description": "React Native component library",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.js",