ripal-ui 1.1.37 → 1.1.39

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.
Files changed (2) hide show
  1. package/elements/Text.tsx +10 -6
  2. package/package.json +2 -2
package/elements/Text.tsx CHANGED
@@ -56,6 +56,8 @@ const Text: FC<TextProps> = ({
56
56
  }
57
57
 
58
58
  if (!fontsLoaded) {
59
+ console.error('Failed to load font');
60
+
59
61
  return <RNText>{children}</RNText>; // Return statement added to properly handle loading state
60
62
  }
61
63
 
@@ -65,15 +67,17 @@ const Text: FC<TextProps> = ({
65
67
 
66
68
  return (
67
69
  <RNText
68
- style={{
70
+ style={[
71
+ {
69
72
  fontSize: size,
70
- color: color,
73
+ color,
71
74
  letterSpacing: spacing,
72
- lineHeight: lineHeight,
73
- ...style,
75
+ lineHeight: lineHeight ?? undefined,
74
76
  fontFamily: `${fontName}_${weight}`,
75
- textAlign: align
76
- }}
77
+ textAlign: align,
78
+ },
79
+ style,
80
+ ]}
77
81
  >
78
82
  {children}
79
83
  </RNText>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ripal-ui",
3
- "version": "1.1.37",
3
+ "version": "1.1.39",
4
4
  "description": "A collection of React elements and components",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -11,7 +11,7 @@
11
11
  "dependencies": {
12
12
  "expo-secure-store": "~15.0.7",
13
13
  "react": "^19.1.0",
14
- "react-native": "^0.81.4"
14
+ "react-native": "^0.81.5"
15
15
  },
16
16
  "devDependencies": {
17
17
  "@babel/cli": "^7.25.6",