@hoddy-ui/core 1.0.69 → 1.0.71

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": "@hoddy-ui/core",
3
- "version": "1.0.69",
3
+ "version": "1.0.71",
4
4
  "description": "Core rich react native components written in typescript",
5
5
  "main": "index.ts",
6
6
  "repository": {
@@ -12,6 +12,8 @@ const Typography: React.FC<TypographyProps> = ({
12
12
  variant = "body1",
13
13
  align = "left",
14
14
  gutterBottom = 0,
15
+ numberOfLines,
16
+ adjustsFontSizeToFit,
15
17
  fontWeight = 400,
16
18
  }) => {
17
19
  const colors = useColors();
@@ -38,7 +40,11 @@ const Typography: React.FC<TypographyProps> = ({
38
40
  },
39
41
  });
40
42
  return (
41
- <Text adjustsFontSizeToFit style={{ ...styles.text, ...style }}>
43
+ <Text
44
+ numberOfLines={numberOfLines}
45
+ adjustsFontSizeToFit={adjustsFontSizeToFit}
46
+ style={{ ...styles.text, ...style }}
47
+ >
42
48
  {children}
43
49
  </Text>
44
50
  );
package/src/types.ts CHANGED
@@ -268,6 +268,8 @@ export interface TypographyProps {
268
268
  | "h1";
269
269
  align?: "center" | "left" | "right";
270
270
  gutterBottom?: number;
271
+ numberOfLines?: number;
272
+ adjustsFontSizeToFit?: boolean;
271
273
  fontWeight?: 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900;
272
274
  }
273
275