@dhiraj0720/report1chart 3.0.3 → 3.0.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhiraj0720/report1chart",
3
- "version": "3.0.3",
3
+ "version": "3.0.4",
4
4
  "main": "src/index.jsx",
5
5
  "scripts": {
6
6
  "test": "echo 'No tests'"
@@ -118,9 +118,8 @@ const PercentCell = ({ value, trend }) => {
118
118
  styles.percentText,
119
119
  isUp ? styles.percentUp : styles.percentDown,
120
120
  ]}
121
- numberOfLines={1}
122
- adjustsFontSizeToFit
123
- minimumFontScale={0.8}
121
+ numberOfLines={2}
122
+ ellipsizeMode="tail"
124
123
  >
125
124
  {isUp ? '↑' : '↓'} {Math.abs(value)}%
126
125
  </Text>
@@ -141,9 +140,8 @@ const RatioCell = ({ value }) => {
141
140
  styles.percentText,
142
141
  isUp ? styles.percentUp : styles.percentDown,
143
142
  ]}
144
- numberOfLines={1}
145
- adjustsFontSizeToFit
146
- minimumFontScale={0.8}
143
+ numberOfLines={2}
144
+ ellipsizeMode="tail"
147
145
  >
148
146
  {isUp ? '↑' : '↓'} %{value}
149
147
  </Text>
@@ -164,10 +162,8 @@ const Cell = ({ children, bold = false, highlight = false, width = 100 }) => (
164
162
  styles.cellText,
165
163
  bold && styles.boldText,
166
164
  ]}
167
- numberOfLines={1}
165
+ numberOfLines={2}
168
166
  ellipsizeMode="tail"
169
- adjustsFontSizeToFit
170
- minimumFontScale={0.72}
171
167
  >
172
168
  {children}
173
169
  </Text>
@@ -291,14 +287,17 @@ const styles = StyleSheet.create({
291
287
  },
292
288
  cell: {
293
289
  width: 100,
294
- paddingVertical: 12,
290
+ height: 48,
291
+ paddingVertical: 6,
295
292
  paddingHorizontal: 8,
296
293
  justifyContent: 'center',
294
+ alignItems: 'center',
297
295
  borderBottomWidth: 1,
298
296
  borderColor: '#e0e0e0',
299
297
  },
300
298
  cellText: {
301
299
  fontSize: 12,
300
+ lineHeight: 14,
302
301
  textAlign: 'center',
303
302
  color: '#333',
304
303
  },