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