mg-library 1.0.302 → 1.0.304
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/functions.js +25 -1
- package/package.json +1 -1
package/functions.js
CHANGED
|
@@ -177,7 +177,23 @@ export function getBasicStyleSheet() {
|
|
|
177
177
|
minHeight: 50,
|
|
178
178
|
paddingVertical: 5,
|
|
179
179
|
marginBottom: 5
|
|
180
|
-
}
|
|
180
|
+
},
|
|
181
|
+
flatlistHeader: {
|
|
182
|
+
marginHorizontal: 20,
|
|
183
|
+
marginBottom: 10,
|
|
184
|
+
paddingHorizontal: 10,
|
|
185
|
+
paddingVertical: 12,
|
|
186
|
+
borderColor: 'gray',
|
|
187
|
+
borderRadius: 10,
|
|
188
|
+
borderStyle: 'solid',
|
|
189
|
+
borderWidth: 1
|
|
190
|
+
},
|
|
191
|
+
chart: {
|
|
192
|
+
flexGrow: 1,
|
|
193
|
+
alignSelf: 'center',
|
|
194
|
+
marginVertical: 10,
|
|
195
|
+
borderRadius: 16
|
|
196
|
+
}
|
|
181
197
|
});
|
|
182
198
|
}
|
|
183
199
|
|
|
@@ -230,6 +246,14 @@ export function showToastWarn(message) {
|
|
|
230
246
|
|
|
231
247
|
// Date & Time
|
|
232
248
|
|
|
249
|
+
export function getDateFormat(language) {
|
|
250
|
+
return language.dateFormat;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
export function getCurrentDate() {
|
|
254
|
+
return new Date(moment());
|
|
255
|
+
}
|
|
256
|
+
|
|
233
257
|
export function getTimeFormat() {
|
|
234
258
|
return 'HH:mm';
|
|
235
259
|
}
|