@dhiraj0720/report1chart 3.0.2 → 3.0.3
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
|
@@ -118,6 +118,9 @@ 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
124
|
>
|
|
122
125
|
{isUp ? '↑' : '↓'} {Math.abs(value)}%
|
|
123
126
|
</Text>
|
|
@@ -138,6 +141,9 @@ const RatioCell = ({ value }) => {
|
|
|
138
141
|
styles.percentText,
|
|
139
142
|
isUp ? styles.percentUp : styles.percentDown,
|
|
140
143
|
]}
|
|
144
|
+
numberOfLines={1}
|
|
145
|
+
adjustsFontSizeToFit
|
|
146
|
+
minimumFontScale={0.8}
|
|
141
147
|
>
|
|
142
148
|
{isUp ? '↑' : '↓'} %{value}
|
|
143
149
|
</Text>
|
|
@@ -158,7 +164,10 @@ const Cell = ({ children, bold = false, highlight = false, width = 100 }) => (
|
|
|
158
164
|
styles.cellText,
|
|
159
165
|
bold && styles.boldText,
|
|
160
166
|
]}
|
|
161
|
-
numberOfLines={
|
|
167
|
+
numberOfLines={1}
|
|
168
|
+
ellipsizeMode="tail"
|
|
169
|
+
adjustsFontSizeToFit
|
|
170
|
+
minimumFontScale={0.72}
|
|
162
171
|
>
|
|
163
172
|
{children}
|
|
164
173
|
</Text>
|