@jescon-technologies/react-native-ui-kit 0.0.4 → 0.0.5

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 (177) hide show
  1. package/index.d.ts +66 -0
  2. package/index.js +0 -4
  3. package/package.json +3 -2
  4. package/src/Alerts/AAlert.js +3 -3
  5. package/src/Alerts/AAlertIOS.js +3 -3
  6. package/src/{common → Common}/NetworkServiceCall.js +1 -1
  7. package/src/CommonStyle/CommonTheme.js +11 -0
  8. package/src/CommonStyle/ComponentFunctions.js +632 -0
  9. package/src/CommonStyle/PopupStyle.js +146 -0
  10. package/src/CommonStyle/commonStyle.js +93 -0
  11. package/src/CommonStyle/componentStyle.js +545 -0
  12. package/src/CommonStyle/optionListStyles.js +175 -0
  13. package/src/Components/ByProductPage.js +200 -0
  14. package/src/Components/CDropDownListNew.js +153 -0
  15. package/src/Components/CSupplierList.js +88 -0
  16. package/src/Components/CVerificationCard.js +2822 -0
  17. package/src/Components/CustomButton.js +67 -0
  18. package/src/Components/CustomCard.js +127 -0
  19. package/src/Components/CustomTextInput.js +47 -0
  20. package/src/Components/EquipmentPage.js +313 -0
  21. package/src/Components/FilterInput.Copy.js +723 -0
  22. package/src/Components/FilterInput.js +569 -0
  23. package/src/Components/HSubHeading.js +68 -0
  24. package/src/Components/HeaderCard.js +40 -0
  25. package/src/Components/MoreOptionsScreen.js +251 -0
  26. package/src/Components/NonSwipableProductCard.js +226 -0
  27. package/src/Components/NonSwipableSupplierCard.js +348 -0
  28. package/src/Components/ProductCard.js +1336 -0
  29. package/src/Components/QualityProductCard.js +1059 -0
  30. package/src/Components/RateProductCard.js +1452 -0
  31. package/src/Components/RawMaterial.js +261 -0
  32. package/src/Components/SDropDownEdited.js +549 -0
  33. package/src/Components/SDropDownNew.js +529 -0
  34. package/src/Components/SHelpDescription.js +147 -0
  35. package/src/Components/STextInputNew.js +510 -0
  36. package/src/Components/SearchProductCard.js +470 -0
  37. package/src/Components/StageByProduct.js +199 -0
  38. package/src/Components/SupplierCard.js +243 -0
  39. package/src/Components/SupplierInvoiceCard.js +405 -0
  40. package/src/Components/SwipableSupplierCard.js +136 -0
  41. package/src/Components/TagTemplate.js +74 -0
  42. package/src/Components/WrappedComponent.js +25 -0
  43. package/src/Custom/CBooking.js +944 -0
  44. package/src/Custom/CBookingPostpone.js +1822 -0
  45. package/src/Custom/CCalendar.js +560 -0
  46. package/src/Custom/CCard.js +880 -0
  47. package/src/Custom/CDetailCard.js +205 -0
  48. package/src/Custom/CHelpImage.js +52 -0
  49. package/src/Custom/CReport.js +569 -0
  50. package/src/Custom/CScrollView.js +73 -0
  51. package/src/Custom/CSignature.js +112 -0
  52. package/src/Custom/CSliderMenu.js +339 -0
  53. package/src/Custom/CSupplierCard.js +99 -0
  54. package/src/Custom/CTemplateCard.js +438 -0
  55. package/src/Custom/CTokenAllocation.js +1402 -0
  56. package/src/Custom/CTokenListOverlay.js +122 -0
  57. package/src/Custom/CWardStatus.js +444 -0
  58. package/src/Custom/Charts/CBarChart.js +218 -0
  59. package/src/Custom/Charts/CDashBoardList.js +133 -0
  60. package/src/Custom/Charts/CDashBoardTable.js +172 -0
  61. package/src/Custom/Charts/CLineChart.js +193 -0
  62. package/src/Custom/Charts/CPieChart.js +186 -0
  63. package/src/Custom/Loader.js +182 -0
  64. package/src/Custom/OUserView.js +1121 -0
  65. package/src/Custom/PreviewDosage.js +115 -0
  66. package/src/Custom/SearchLoader.js +32 -0
  67. package/src/Custom/TableComponent/CActivityTable.js +707 -0
  68. package/src/Custom/TableComponent/CMoreButtonTable.js +197 -0
  69. package/src/Custom/TableComponent/CTable.js +185 -0
  70. package/src/Custom/TableComponent/CTextBody.js +40 -0
  71. package/src/Custom/TableComponent/CTextHeader.js +17 -0
  72. package/src/Custom/TableComponent/PreviewPrescriptionNew.js +1011 -0
  73. package/src/Custom/TableComponent/SDropdownTable.js +491 -0
  74. package/src/Custom/TableComponent/TagTable.js +1200 -0
  75. package/src/CustomComponents/CAddColumn.js +140 -0
  76. package/src/CustomComponents/CAssessmentDelete.js +307 -0
  77. package/src/CustomComponents/CAwesomeButton.js +83 -0
  78. package/src/CustomComponents/CAwesomeMoreButton.js +54 -0
  79. package/src/CustomComponents/CBackHandler.js +273 -0
  80. package/src/CustomComponents/CCalendar.js +243 -0
  81. package/src/CustomComponents/CCommentOverlay.js +202 -0
  82. package/src/CustomComponents/CComments.js +162 -0
  83. package/src/CustomComponents/CContainerView.js +24 -0
  84. package/src/CustomComponents/CCustomTextInput.js +336 -0
  85. package/src/CustomComponents/CDetailView.js +40 -0
  86. package/src/CustomComponents/CDropDownList.js +153 -0
  87. package/src/CustomComponents/CDropdownSelect.js +555 -0
  88. package/src/CustomComponents/CFooterView.js +42 -0
  89. package/src/CustomComponents/CImagePickerSave.js +316 -0
  90. package/src/CustomComponents/CModalOverlay.js +91 -0
  91. package/src/CustomComponents/CNetworkStatus.js +327 -0
  92. package/src/CustomComponents/CNotesInstructions.js +1000 -0
  93. package/src/CustomComponents/COverlay.js +81 -0
  94. package/src/CustomComponents/CRemarks.js +176 -0
  95. package/src/CustomComponents/CRowAdd.js +143 -0
  96. package/src/CustomComponents/CSummaryDropDown.js +327 -0
  97. package/src/CustomComponents/CText.js +9 -0
  98. package/src/CustomComponents/CVectorIcon.js +34 -0
  99. package/src/CustomComponents/HtmlContentViewer.js +65 -0
  100. package/src/CustomComponents/PdfContentViewer.js +90 -0
  101. package/src/CustomComponents/SDropDownDosage.js +1087 -0
  102. package/src/CustomComponents/SwipableProductCard.js +246 -0
  103. package/src/CustomComponents/SwipableProductImageCard.js +254 -0
  104. package/src/CustomComponents/WorkOrderDetails.js +1216 -0
  105. package/src/CustomComponents/WorkOrderDetailsPage.js +1213 -0
  106. package/src/HOC/ConfirmOverlay.js +2 -2
  107. package/src/HOC/HMoreButton.js +1 -1
  108. package/src/HOC/HNatureHeading.js +1 -1
  109. package/src/HOC/HShadowButton.js +1 -1
  110. package/src/HOC/HShadowCountButton.js +1 -1
  111. package/src/Json/Chart.json +818 -0
  112. package/src/Json/Consultation.json +622 -0
  113. package/src/Json/CreditBill.json +490 -0
  114. package/src/Json/Dropdown.json +216 -0
  115. package/src/Json/DropdownConsultation.json +228 -0
  116. package/src/Json/DynamicReports.json +623 -0
  117. package/src/Json/Footer.json +79 -0
  118. package/src/Media/AudioScreen.js +2 -7
  119. package/src/Media/CCaptureImageWithoutEdit.js +1 -1
  120. package/src/Media/CImageGallery.js +2 -2
  121. package/src/Media/CSingleImage.js +2 -2
  122. package/src/Media/CVideoPlay.js +1 -1
  123. package/src/Media/DocumentScreen.js +2 -7
  124. package/src/Media/DrawingScreen.js +2 -6
  125. package/src/Media/ImageScreen.js +2 -6
  126. package/src/Media/VideoScreen.js +2 -7
  127. package/src/Navigation/PageNavigation.js +224 -0
  128. package/src/Navigation/useFocusEffect.js +2 -0
  129. package/src/Navigation/useFocusEffect.native.js +1 -0
  130. package/src/Navigation/useFocusEffect.web.js +1 -0
  131. package/src/Navigation/useIsFocused.js +1 -0
  132. package/src/Navigation/useIsFocused.native.js +1 -0
  133. package/src/Navigation/useIsFocused.web.js +1 -0
  134. package/src/Navigation/useNavigation.js +2 -0
  135. package/src/Navigation/useNavigation.native.js +1 -0
  136. package/src/Navigation/useNavigation.web.js +1 -0
  137. package/src/Screens/CMedications.js +528 -0
  138. package/src/Screens/CWebViewGallery.js +203 -0
  139. package/src/Screens/ChartScan.js +279 -0
  140. package/src/Screens/ChartScreenNew.js +1579 -0
  141. package/src/Screens/Consultation.js +1500 -0
  142. package/src/Screens/Dashboard.js +778 -0
  143. package/src/Screens/FileExplorer.js +288 -0
  144. package/src/Screens/Footer.js +340 -0
  145. package/src/Screens/ForgotPassword.js +288 -0
  146. package/src/Screens/HeaderBlock.js +353 -0
  147. package/src/Screens/Login.js +328 -0
  148. package/src/Screens/Notification.js +149 -0
  149. package/src/Screens/OcrScreen.js +20 -0
  150. package/src/Screens/PdfPreview.js +507 -0
  151. package/src/Screens/RegistrationDetails.js +467 -0
  152. package/src/Screens/SearchScreen.js +582 -0
  153. package/src/Screens/Splash.js +788 -0
  154. package/src/Screens/SwipeLeftView.js +1867 -0
  155. package/src/StaticComponents/SDatePickerLabel.js +1 -1
  156. package/src/StaticComponents/SDatePickerNew.js +1 -1
  157. package/src/StaticComponents/SDateTimePickerNew.js +2 -2
  158. package/src/StaticComponents/SDropDownGenerate.js +3 -3
  159. package/src/StaticComponents/SDropDownHoc.js +4 -4
  160. package/src/StaticComponents/SDropDownIcon.js +1 -1
  161. package/src/StaticComponents/SMenuBox.js +2 -2
  162. package/src/StaticComponents/SSearch.js +2 -2
  163. package/src/StaticComponents/STextInput.js +1 -1
  164. package/src/StaticComponents/STimePicker.js +1 -1
  165. package/src/StaticComponents/STimingDropDownNew.js +2 -6
  166. package/src/StaticComponents/STimingSwitch.js +1 -1
  167. package/src/layout/CContainerView.js +1 -1
  168. package/src/layout/CDetailView.js +3 -3
  169. package/src/layout/HeaderBlock.js +5 -5
  170. package/src/layout/INVLoginLayout.js +3 -4
  171. package/src/layout/Loader.js +2 -2
  172. package/src/HOC/HAbsolute.js +0 -56
  173. package/src/HOC/HDiscontinue.js +0 -105
  174. package/src/HOC/HOverlay.js +0 -99
  175. package/src/layout/FooterBlock.js +0 -821
  176. /package/src/{common → Common}/ErrorBoundary.tsx +0 -0
  177. /package/src/{common → Common}/Icons.js +0 -0
@@ -0,0 +1,632 @@
1
+
2
+ import ComponentStyles from '../CommonStyle/componentStyle';
3
+ import { colors, fontWeight } from '../CommonStyle/commonStyle';
4
+ import {
5
+ ToastAndroid,
6
+ Platform,
7
+ Alert,
8
+ PermissionsAndroid,
9
+ ActivityIndicator,
10
+ DeviceEventEmitter,
11
+ PixelRatio,
12
+ Dimensions,
13
+ View,
14
+ Image,
15
+ } from 'react-native';
16
+ import Sound from 'react-native-sound';
17
+ import NetInfo from '@react-native-community/netinfo';
18
+ import { Global } from '../../../../../src/Common/Global';
19
+ import { APIURL } from '../../../../../src/Common/apiConstants';
20
+ import React from 'react';
21
+
22
+ const {
23
+ width: SCREEN_WIDTH,
24
+ height: SCREEN_HEIGHT,
25
+ } = Dimensions.get('window');
26
+
27
+ const scale = SCREEN_WIDTH / 320;
28
+
29
+ export function getSound(code) {
30
+ Sound.setCategory('Playback');
31
+ const track = new Sound(code, Sound.MAIN_BUNDLE, (e) => {
32
+ if (e) {
33
+ console.log('error loading track:', e);
34
+ } else {
35
+ console.log('Playings');
36
+ track.play();
37
+ }
38
+ });
39
+ }
40
+
41
+ export function CButtonShadow() {
42
+
43
+ const isAndroidBelow9 = Platform.OS === 'android' && Platform.Version < 28;
44
+ return isAndroidBelow9 ? {
45
+ elevation: 10,
46
+ shadowColor: Global.AppTheme.primary_color,
47
+ shadowOffset: { width: 5, height: 5 },
48
+ shadowOpacity: 0,
49
+ shadowRadius: 20,
50
+ } : {
51
+ boxShadow: `-3 3 6 -1 ${Global.AppTheme.primary_color}`,
52
+ }; // offsetX offsetY blurRadius spreadDistance color
53
+ }
54
+
55
+ export function CFooterShadow() {
56
+
57
+ const isAndroidBelow9 = Platform.OS === 'android' && Platform.Version < 28;
58
+ return isAndroidBelow9 ? {
59
+ elevation: 10,
60
+ shadowColor: Global.AppTheme.primary_color,
61
+ shadowOffset: { width: 5, height: 5 },
62
+ shadowOpacity: 0,
63
+ shadowRadius: 20,
64
+ } : {
65
+ boxShadow: `0 4 10 0 ${Global.AppTheme.primary_color}`,
66
+ }; // offsetX offsetY blurRadius spreadDistance color
67
+ }
68
+
69
+ export function LoaderIndicator(i) {
70
+
71
+ return (
72
+
73
+ <View style={{
74
+ backgroundColor: '#ffffff',
75
+ padding: normalize(10),
76
+ paddingHorizontal: normalize(20),
77
+ borderRadius: 10,
78
+ alignItems: 'center',
79
+ }}>
80
+ <Image
81
+ style={{
82
+ width: normalize(35),
83
+ height: normalize(35),
84
+ }}
85
+ // source={require('../Assets/gif/loading.gif')}
86
+ source={{uri: `${APIURL}file/getCommonFile/image/heartpulse.gif`}}
87
+ resizeMode={Image.resizeMode.contain}
88
+ />
89
+ </View>
90
+ );
91
+
92
+ }
93
+
94
+ export function normalize(size) {
95
+ const newSize = scale < 1.5 ? size * scale : size * 1.6;
96
+ if (Platform.OS === 'ios') {
97
+ return Math.round(PixelRatio.roundToNearestPixel(newSize)) - 2;
98
+ } else {
99
+ return Math.round(PixelRatio.roundToNearestPixel(newSize)) - 2;
100
+ }
101
+ }
102
+
103
+ export function Loader() {
104
+ return (
105
+ <ActivityIndicator size={normalize(30)} style={{ marginTop: normalize(10) }} color="red" />
106
+ );
107
+ }
108
+
109
+ export function CShadowDynamic(
110
+ offsetX = 0,
111
+ offsetY = 2,
112
+ blurRadius = 6,
113
+ spreadDistance = 0,
114
+ color = 'rgba(0, 0, 0, 0.2)',
115
+ ) {
116
+ const isAndroidBelow9 = Platform.OS === 'android' && Platform.Version < 28;
117
+
118
+ return isAndroidBelow9
119
+ ? {
120
+ elevation: 6,
121
+ shadowColor: color,
122
+ shadowOffset: {width: offsetX, height: offsetY},
123
+ shadowOpacity: 0.25,
124
+ shadowRadius: blurRadius,
125
+ }
126
+ : {
127
+ boxShadow: `${offsetX}px ${offsetY}px ${blurRadius}px ${spreadDistance}px ${color}`,
128
+ };
129
+ }
130
+
131
+ export async function getAppVersion() {
132
+ var Ver = 1.1;
133
+ const Results = await codePush.getUpdateMetadata();
134
+ if (Results) {
135
+ if (Results.isPending == false) {
136
+ Ver = Results.appVersion + Results.label;
137
+ } else {
138
+ Ver = Results.appVersion + Results.label + ' NOT UPDATED !!!';
139
+ }
140
+ }
141
+ return Ver;
142
+ }
143
+
144
+
145
+ /**
146
+ * To check whether value is true && null && undefined
147
+ */
148
+ export function isBNU(i) {
149
+ return (i && i != null && i != undefined ? true : false);
150
+ }
151
+
152
+ /**
153
+ * To check whether value is null && undefined
154
+ */
155
+ export function isNU(i) { return (i != null && i != undefined ? true : false); }
156
+
157
+ /**
158
+ * To check whether value is null && undefined && length > 0
159
+ */
160
+ export function isNUL(i) { return (i != null && i != undefined && i.length > 0 ? true : false); }
161
+
162
+ /**
163
+ * To check whether value is null && undefined && !=""
164
+ */
165
+ export function isNUQ(i) { return (i != null && i != undefined && i != '' ? true : false); }
166
+
167
+ /**
168
+ * To check whether value is null && undefined && !="" && != 0
169
+ */
170
+ export function isNUQZ(i) { return (i != null && i != undefined && i != '' && i != 0 ? true : false); }
171
+
172
+ /**
173
+ * To check whether value is true && null && undefined && length > 0
174
+ */
175
+ export function isBNUL(i) {
176
+ return (i && i != null && i != undefined && i.length > 0 ? true : false);
177
+ }
178
+
179
+ export function isOrganism(i) {
180
+ return (i == 3 ? true : false);
181
+ }
182
+
183
+ export function isDescription(i) {
184
+ return (i == 1 || i == 6 || i == 7 || i == 8 ? true : false);
185
+ }
186
+
187
+ export function isValueBased(i) {
188
+ return (i == 2 || i == 4 || i == 5 ? true : false);
189
+ }
190
+
191
+ export function dlog(i) {
192
+ if (__DEV__) {
193
+ return console.log(i);
194
+ }
195
+ else {
196
+
197
+ }
198
+ }
199
+
200
+ export function cdev() {
201
+ if (__DEV__) {
202
+ return true;
203
+ }
204
+ else {
205
+ return false;
206
+ }
207
+ }
208
+
209
+ export function clog(i) {
210
+ return console.log(i);
211
+ }
212
+
213
+
214
+
215
+
216
+ export function ValueCheck(value) {
217
+ if (value) {
218
+ return true;
219
+ } else {
220
+ false;
221
+ }
222
+ }
223
+
224
+ export function convertStringToArrayWeekDay(inputString) {
225
+ const days = [
226
+ { datavalue: 1, displayvalue: 'Su', selected: true },
227
+ { datavalue: 2, displayvalue: 'M', selected: true },
228
+ { datavalue: 3, displayvalue: 'Tu', selected: true },
229
+ { datavalue: 4, displayvalue: 'W', selected: true },
230
+ { datavalue: 5, displayvalue: 'Th', selected: true },
231
+ { datavalue: 6, displayvalue: 'F', selected: true },
232
+ { datavalue: 7, displayvalue: 'Sa', selected: true },
233
+ ];
234
+ const selectedDays = inputString.split(',').map(Number);
235
+ return days.map((day) => {
236
+ return {
237
+ datavalue: day.datavalue,
238
+ displayvalue: day.displayvalue,
239
+ selected: selectedDays.includes(day.datavalue) ? false : true,
240
+ // selected: day.selected,
241
+ };
242
+ });
243
+ }
244
+
245
+ export function ArrayCheck(value) {
246
+ if (value && value.length > 0) {
247
+ return true;
248
+ } else {
249
+ false;
250
+ }
251
+ }
252
+
253
+ export async function isPermitted() {
254
+ if (Platform.OS === 'android') {
255
+ try {
256
+ const apiLevel = Platform.Version;
257
+
258
+ // Android 13+ (API 33+) - need READ_MEDIA permissions
259
+ if (apiLevel >= 33) {
260
+ const granted = await PermissionsAndroid.request(
261
+ PermissionsAndroid.PERMISSIONS.READ_MEDIA_IMAGES
262
+ );
263
+ return granted === PermissionsAndroid.RESULTS.GRANTED;
264
+ }
265
+ // Android 10-12 (API 29-32) - Scoped Storage, no permission needed
266
+ else if (apiLevel >= 29) {
267
+ return true;
268
+ }
269
+ // Android 9 and below - need WRITE_EXTERNAL_STORAGE
270
+ else {
271
+ const granted = await PermissionsAndroid.request(
272
+ PermissionsAndroid.PERMISSIONS.WRITE_EXTERNAL_STORAGE
273
+ );
274
+ return granted === PermissionsAndroid.RESULTS.GRANTED;
275
+ }
276
+ } catch (err) {
277
+ Alert.alert('File access Permission not allowed', err.toString());
278
+ return false;
279
+ }
280
+ } else {
281
+ return true;
282
+ }
283
+ }
284
+
285
+ export function getLoading(load) {
286
+ setTimeout(load, 15000);
287
+ }
288
+ export function isDes(i) {
289
+ return (i == 1 ? true : false);
290
+ }
291
+
292
+ export function isVal(i) {
293
+ return (i == 2 ? true : false);
294
+ }
295
+
296
+ export function isOrg(i) {
297
+ return (i == 3 ? true : false);
298
+ }
299
+
300
+ export function isSero(i) {
301
+ return (i == 4 ? true : false);
302
+ }
303
+
304
+ export function isViro(i) {
305
+ return (i == 5 ? true : false);
306
+ }
307
+
308
+ export function isPath(i) {
309
+ return (i == 6 ? true : false);
310
+ }
311
+
312
+ export function isConnected() {
313
+ return new Promise((resolve, reject) => {
314
+ NetInfo.fetch().then(state => {
315
+ console.log('Connection type', state.type);
316
+ console.log('Is connected?', state.isConnected);
317
+ console.log('Is Internet?', state.isInternetReachable);
318
+ console.log('Details: - ', state.details);
319
+
320
+ if (state.isConnected && state.isInternetReachable) {
321
+ resolve();
322
+ }
323
+ else {
324
+ reject();
325
+ }
326
+ });
327
+ });
328
+ }
329
+
330
+ //Footer icon
331
+ export function getFooterIcon(opacity) {
332
+ return (
333
+ {
334
+ ...ComponentStyles.footer_Icon,
335
+ opacity: opacity,
336
+ }
337
+ );
338
+ }
339
+
340
+ export function notifyMessage(msg, type) {
341
+ DeviceEventEmitter.emit('event.testToast', {
342
+ 'displaytext': msg,
343
+ 'datavalue': type,
344
+ });
345
+
346
+ // let X = bottom != undefined && bottom != null ? bottom : 80
347
+ // if (Platform.OS === 'android') {
348
+ // ToastAndroid.showWithGravityAndOffset(msg, ToastAndroid.LONG, ToastAndroid.BOTTOM,
349
+ // 0,
350
+ // X)
351
+ // } else {
352
+ // Alert.alert(msg);
353
+ // }
354
+ }
355
+
356
+ export function getFooterIconText(opacity, color) {
357
+ return (
358
+ {
359
+ ...ComponentStyles.footer_Icon_Text,
360
+ opacity: opacity,
361
+ color: color,
362
+ }
363
+ );
364
+ }
365
+
366
+ // Header Section
367
+
368
+ export function getHeaderBlockContainer(width) {
369
+ return (
370
+ {
371
+ ...ComponentStyles.header_section_conatiner_style,
372
+ width: width,
373
+ paddingTop: '5%',
374
+ }
375
+ );
376
+ }
377
+ export function getHeaderTitleContainer(width) {
378
+ return (
379
+ {
380
+ justifyContent: 'flex-end', paddingLeft: width * 0.02,
381
+ }
382
+ );
383
+ }
384
+
385
+ export function getResultViewObservedvalueTextvalidate(value, minvalue, maxvalue, datatype) {
386
+ switch (datatype) {
387
+ case 'integer':
388
+ case 'numeric':
389
+ if (minvalue != null && minvalue != undefined && value < minvalue) {
390
+ return colors.color_resulttext_low;
391
+ }
392
+ else if (maxvalue != null && maxvalue != undefined && value > maxvalue) {
393
+ return colors.color_resulttext_high;
394
+ }
395
+ else {
396
+ return colors.color_resulttext_normal;
397
+ }
398
+ break;
399
+ default:
400
+ return colors.color_resulttext_normal;
401
+ }
402
+ }
403
+
404
+ // Profile Card
405
+
406
+ export function getProfileMainContainer(item) {
407
+ console.log('getProfileMainContainer', item);
408
+ return (
409
+ {
410
+ width: '96%',
411
+ backgroundColor: '#fff',
412
+ flexDirection: 'row',
413
+ alignItems: 'center',
414
+ borderRadius: 10, elevation: 5,
415
+ marginBottom: 5,
416
+ borderWidth: 0.1,
417
+ borderLeftWidth: 5,
418
+ borderColor: item.bordercolor ? item.bordercolor : 'lightgreen',
419
+ }
420
+ );
421
+ }
422
+ export function getProfileContentLeftlogo1(item) {
423
+ return (
424
+ {
425
+ borderRadius: 0,
426
+ // backgroundColor: "blue",
427
+ padding: 5,
428
+ color: 'black',
429
+ fontWeight: 'bold', fontSize: normalize(11),
430
+ }
431
+ );
432
+ }
433
+ export function getProfileContentLeftlogo2() {
434
+ return (
435
+ {
436
+ backgroundColor: '#fcb5b5',
437
+ padding: 5,
438
+ borderRadius: 50,
439
+ color: 'black',
440
+ fontSize: normalize(10),
441
+ }
442
+ );
443
+ }
444
+ export function getProfileContentLogo1() {
445
+ return (
446
+ {
447
+ fontSize: normalize(13),
448
+ marginTop: 3,
449
+ color: 'black',
450
+ fontWeight: 'bold',
451
+ }
452
+ );
453
+ }
454
+ export function getProfileContentLogo2() {
455
+ return (
456
+ {
457
+ fontSize: normalize(10),
458
+ color: 'black',
459
+ }
460
+ );
461
+ }
462
+ export function getProfilecardSubheadingTop(color) {
463
+ return (
464
+ {
465
+ fontSize: normalize(10),
466
+ fontWeight: fontWeight.fontWeight_700,
467
+ color: color,
468
+ // padding: 5,
469
+ paddingBottom: 0,
470
+ paddingTop: 2,
471
+ }
472
+ );
473
+ }
474
+ export function getProfilecardSubheadingBottom(color, position) {
475
+ return (
476
+ {
477
+ fontSize: normalize(10),
478
+ fontWeight: fontWeight.fontWeight_100,
479
+ color: color,
480
+ paddingLeft: position == 'right' ? 5 : 0,
481
+ paddingRight: position == 'left' ? 5 : 0,
482
+ }
483
+ );
484
+ }
485
+
486
+ export function getProfilecardMobileNO(color, position) {
487
+ return (
488
+ {
489
+ fontSize: normalize(12),
490
+ // fontWeight: fontWeight.fontWeight_100,
491
+ fontWeight: fontWeight.fontWeight_Bold,
492
+ color: color,
493
+ paddingLeft: position == 'right' ? 5 : 0,
494
+ paddingRight: position == 'left' ? 5 : 0,
495
+ }
496
+ );
497
+ }
498
+ export function getProfilecardOnlineStatusBadgeContainer(backgroundcolor) {
499
+ return (
500
+ {
501
+ backgroundColor: backgroundcolor,
502
+ height: normalize(20),
503
+ // width:normalize(28),
504
+ paddingHorizontal: normalize(5),
505
+ borderRadius: 1000,
506
+ padding: 0,
507
+ //elevation: 5,
508
+ //borderColor:backgroundcolor,
509
+ //borderWidth:1
510
+ }
511
+ );
512
+ }
513
+ export function getGroupButtonView(width) {
514
+ return (
515
+ {
516
+ justifyContent: 'center', margin: 5,
517
+ width: width * 0.10,
518
+ alignContent: 'center', alignItems: 'center',
519
+ }
520
+ );
521
+ }
522
+ export function getMediaoverlayContainerStyle(height) {
523
+ return (
524
+ {
525
+ ...ComponentStyles.mediaoverlay_containerstyle,
526
+ height: height,
527
+ }
528
+ );
529
+ }
530
+ export function getMediaViewContainer(width, height, itemwidth) {
531
+ return (
532
+ {
533
+ ...ComponentStyles.View_col_center,
534
+ width: width * (itemwidth / 100),
535
+ margin: height * 0.003,
536
+ }
537
+ );
538
+ }
539
+ export function getMediaViewChildContainer(width, itemwidth) {
540
+ return (
541
+ {
542
+ borderWidth: 0.5,
543
+ borderRadius: 2,
544
+ width: width * (itemwidth / 100),
545
+ borderColor: colors.color_componentBordercolor,
546
+ }
547
+ );
548
+ }
549
+ export function getMediaIcon(width, itemwidth) {
550
+ return (
551
+ {
552
+ height: 120,
553
+ width: width * (itemwidth / 100),
554
+ }
555
+ );
556
+ }
557
+ export function getMediaoverlayChildrenwrapperStyle(width, height, itemheight) {
558
+ return (
559
+ {
560
+ width: width,
561
+ height: itemheight,
562
+ padding: height * 0.01,
563
+ }
564
+ );
565
+ }
566
+ export function getMediaoverlayTopLineContainer(width, height) {
567
+ return (
568
+ {
569
+ ...ComponentStyles.View_col_center,
570
+ width: width * 0.15, height: height * 0.02,
571
+ }
572
+ );
573
+ }
574
+ export function getMediaoverlayOptionRow(width, height) {
575
+ return (
576
+ {
577
+ ...ComponentStyles.View_row_spacearound,
578
+ borderRadius: 14,
579
+ marginTop: height * 0.02, width: width * 0.90,
580
+ }
581
+ );
582
+ }
583
+ export function getMediaoverlayOptionContainer(width, height) {
584
+ return (
585
+ {
586
+ ...ComponentStyles.View_col_center,
587
+ margin: 5,
588
+ height: height * 0.1,
589
+ width: width * 0.20,
590
+ }
591
+ );
592
+ }
593
+ export function getMediaoverlayMsgorLoaderView(height) {
594
+ return (
595
+ {
596
+ height: height,
597
+ ...ComponentStyles.View_col_center,
598
+ }
599
+ );
600
+ }
601
+ export function getMediaGalleryChildContainer(width, height) {
602
+ return (
603
+ {
604
+ marginTop: height * 0.01, width: width * 0.90,
605
+ justifyContent: 'center', alignItems: 'center',
606
+ }
607
+ );
608
+ }
609
+ export function getMediaGalleryDeleteView(width, height) {
610
+ return (
611
+ {
612
+ borderWidth: 0.5, borderRadius: 2,
613
+ height: height / 5, width: width * 0.90,
614
+ borderColor: colors.color_componentBordercolor,
615
+ alignItems: 'center', justifyContent: 'center',
616
+ }
617
+ );
618
+ }
619
+ export function getMediaIconStyle(width, height) {
620
+ return (
621
+ {
622
+ height: height / 5, width: width * 0.90,
623
+ }
624
+ );
625
+ }
626
+ export function getMediaGalleryDeleteIcon(width) {
627
+ return (
628
+ {
629
+ height: '40%', width: width * 0.90, resizeMode: 'contain',
630
+ }
631
+ );
632
+ }