@hoddy-ui/core 1.0.70 → 1.0.72

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.70",
3
+ "version": "1.0.72",
4
4
  "description": "Core rich react native components written in typescript",
5
5
  "main": "index.ts",
6
6
  "repository": {
@@ -13,6 +13,7 @@ const Typography: React.FC<TypographyProps> = ({
13
13
  align = "left",
14
14
  gutterBottom = 0,
15
15
  numberOfLines,
16
+ adjustsFontSizeToFit,
16
17
  fontWeight = 400,
17
18
  }) => {
18
19
  const colors = useColors();
@@ -41,7 +42,7 @@ const Typography: React.FC<TypographyProps> = ({
41
42
  return (
42
43
  <Text
43
44
  numberOfLines={numberOfLines}
44
- adjustsFontSizeToFit
45
+ adjustsFontSizeToFit={adjustsFontSizeToFit}
45
46
  style={{ ...styles.text, ...style }}
46
47
  >
47
48
  {children}
package/src/hooks.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { useContext } from "react";
2
- import { Platform } from "react-native";
2
+ import { Dimensions, Platform } from "react-native";
3
3
  import { vs } from "react-native-size-matters";
4
4
  import { UIThemeContext } from "./theme";
5
5
  import colors from "./theme/colors";
@@ -42,7 +42,10 @@ export const useNavScreenOptions = (type: "stack" | "tab" | "drawer") => {
42
42
  // shadowOffset: { height: -3, width: 0 },
43
43
  // shadowRadius: 7,
44
44
  // shadowOpacity: 0.1,
45
- height: vs(70),
45
+ height:
46
+ Platform.OS === "android"
47
+ ? Dimensions.get("screen").height * 0.08
48
+ : undefined,
46
49
  backgroundColor: colors.white[1],
47
50
  },
48
51
  tabBarActiveTintColor: colors.blue.main,
package/src/types.ts CHANGED
@@ -269,6 +269,7 @@ export interface TypographyProps {
269
269
  align?: "center" | "left" | "right";
270
270
  gutterBottom?: number;
271
271
  numberOfLines?: number;
272
+ adjustsFontSizeToFit?: boolean;
272
273
  fontWeight?: 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900;
273
274
  }
274
275