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

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 (178) hide show
  1. package/index.d.ts +66 -0
  2. package/index.js +3 -7
  3. package/package.json +3 -2
  4. package/src/Alerts/AAlert.js +4 -4
  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/RecordAudio.js +1 -1
  127. package/src/Media/VideoScreen.js +2 -7
  128. package/src/Navigation/PageNavigation.js +224 -0
  129. package/src/Navigation/useFocusEffect.js +2 -0
  130. package/src/Navigation/useFocusEffect.native.js +1 -0
  131. package/src/Navigation/useFocusEffect.web.js +1 -0
  132. package/src/Navigation/useIsFocused.js +1 -0
  133. package/src/Navigation/useIsFocused.native.js +1 -0
  134. package/src/Navigation/useIsFocused.web.js +1 -0
  135. package/src/Navigation/useNavigation.js +2 -0
  136. package/src/Navigation/useNavigation.native.js +1 -0
  137. package/src/Navigation/useNavigation.web.js +1 -0
  138. package/src/Screens/CMedications.js +528 -0
  139. package/src/Screens/CWebViewGallery.js +203 -0
  140. package/src/Screens/ChartScan.js +279 -0
  141. package/src/Screens/ChartScreenNew.js +1579 -0
  142. package/src/Screens/Consultation.js +1500 -0
  143. package/src/Screens/Dashboard.js +778 -0
  144. package/src/Screens/FileExplorer.js +288 -0
  145. package/src/Screens/Footer.js +340 -0
  146. package/src/Screens/ForgotPassword.js +288 -0
  147. package/src/Screens/HeaderBlock.js +353 -0
  148. package/src/Screens/Login.js +328 -0
  149. package/src/Screens/Notification.js +149 -0
  150. package/src/Screens/OcrScreen.js +20 -0
  151. package/src/Screens/PdfPreview.js +507 -0
  152. package/src/Screens/RegistrationDetails.js +467 -0
  153. package/src/Screens/SearchScreen.js +582 -0
  154. package/src/Screens/Splash.js +788 -0
  155. package/src/Screens/SwipeLeftView.js +1867 -0
  156. package/src/StaticComponents/SDatePickerLabel.js +1 -1
  157. package/src/StaticComponents/SDatePickerNew.js +1 -1
  158. package/src/StaticComponents/SDateTimePickerNew.js +2 -2
  159. package/src/StaticComponents/SDropDownGenerate.js +3 -3
  160. package/src/StaticComponents/SDropDownHoc.js +4 -4
  161. package/src/StaticComponents/SDropDownIcon.js +1 -1
  162. package/src/StaticComponents/SMenuBox.js +2 -2
  163. package/src/StaticComponents/SSearch.js +2 -2
  164. package/src/StaticComponents/STextInput.js +1 -1
  165. package/src/StaticComponents/STimePicker.js +1 -1
  166. package/src/StaticComponents/STimingDropDownNew.js +2 -6
  167. package/src/StaticComponents/STimingSwitch.js +1 -1
  168. package/src/layout/CContainerView.js +1 -1
  169. package/src/layout/CDetailView.js +3 -3
  170. package/src/layout/HeaderBlock.js +5 -5
  171. package/src/layout/INVLoginLayout.js +3 -4
  172. package/src/layout/Loader.js +2 -2
  173. package/src/HOC/HAbsolute.js +0 -56
  174. package/src/HOC/HDiscontinue.js +0 -105
  175. package/src/HOC/HOverlay.js +0 -99
  176. package/src/layout/FooterBlock.js +0 -821
  177. /package/src/{common → Common}/ErrorBoundary.tsx +0 -0
  178. /package/src/{common → Common}/Icons.js +0 -0
@@ -0,0 +1,438 @@
1
+ import { Dimensions, ScrollView, Text, View } from "react-native";
2
+ import { SwipeRow } from "react-native-swipe-list-view";
3
+ import { CButtonShadow, CShadowDynamic, isBNUL, isNU, isNUQ, lightenColor, normalize } from "../CommonStyle/ComponentFunctions";
4
+ //import { GestureHandlerRootView } from "react-native-gesture-handler";
5
+ import { TouchableOpacity } from "react-native";
6
+ import { TouchableHighlight } from "react-native";
7
+ import AutoScroll from "@homielab/react-native-auto-scroll";
8
+ import { Global } from '../../../../../src/Common/Global';
9
+ import HOCIcons from "../HOC/HOCIcons";
10
+ import moment from 'moment'
11
+ import HShadowButton from "../HOC/HShadowButton";
12
+
13
+
14
+ export default function CTemplateCard(props) {
15
+
16
+ // console.log('CTemplateCard', JSON.stringify(props.data))
17
+
18
+ const templatedata = isNU(props.data) ? props.data : {};
19
+
20
+ const templatedetails = {
21
+ "datavalue": 5313,
22
+ "displayvalue": "DR SOJAN GENERAL TEMPLATE",
23
+ "selected": false,
24
+ "isexpand": false,
25
+ "access": 0,
26
+ "accessname": "UNIVERSAL",
27
+ "description": "",
28
+ "entryusername": "ARJUN G MENON",
29
+ "entrydate": "01-02-2025",
30
+ "modifieddate": "03-02-2025",
31
+ "modifieduser": "DR MATHEW",
32
+ "updatestatus": 0,
33
+ "updatecolor": "#000C00",
34
+ "datagroup1": [
35
+ {
36
+ "datavalue": 6925,
37
+ "hosumrclassificationnature": 20,
38
+ "displayvalue": "PRESCRIPTION",
39
+ "selected": false,
40
+ "isexpand": false
41
+ },
42
+ {
43
+ "datavalue": 6926,
44
+ "hosumrclassificationnature": 10,
45
+ "displayvalue": "VITAL SIGNS",
46
+ "selected": false,
47
+ "isexpand": false
48
+ }
49
+ ],
50
+ "consultationnature": [
51
+ {
52
+ "datavalue": 1,
53
+ "displayvalue": "FIRST",
54
+ "color": '#094485'
55
+ },
56
+ {
57
+ "datavalue": 2,
58
+ "displayvalue": "REVISIT",
59
+ "color": '#094485'
60
+ },
61
+ {
62
+ "datavalue": 3,
63
+ "displayvalue": "RENEWAL",
64
+ "color": '#094485'
65
+ },
66
+ {
67
+ "datavalue": 4,
68
+ "displayvalue": "RENEWAL",
69
+ "color": '#094485'
70
+ },
71
+ {
72
+ "datavalue": 5,
73
+ "displayvalue": "RENEWAL",
74
+ "color": '#094485'
75
+ },
76
+ {
77
+ "datavalue": 6,
78
+ "displayvalue": "REFFERED",
79
+ "color": '#094485'
80
+ },
81
+ {
82
+ "datavalue": 7,
83
+ "displayvalue": "CROSS",
84
+ "color": '#094485'
85
+ },
86
+ {
87
+ "datavalue": 8,
88
+ "displayvalue": "OPINION",
89
+ "color": '#094485'
90
+ },
91
+ {
92
+ "datavalue": 9,
93
+ "displayvalue": "ADMISSION",
94
+ "color": '#094485'
95
+ },
96
+ {
97
+ "datavalue": 10,
98
+ "displayvalue": "ROUNDS",
99
+ "color": '#094485'
100
+ },
101
+ {
102
+ "datavalue": 10,
103
+ "displayvalue": "DISCHARGE",
104
+ "color": '#094485'
105
+ }
106
+ ],
107
+ "diagnosis": [
108
+ {
109
+ "diagnosisnature": "P",
110
+ "diagnosisname": "DS(Prov.)",
111
+ "naturecolor": "#22e35c",
112
+ "hopapatient": 2898526,
113
+ "icd": [
114
+ {
115
+ "datavalue": "X0801XD",
116
+ "displayvalue": "Exposure to bed fire due to burning cigarette, subsequent encounter,Exposure to bed fire due to burning cigarette, subsequent encounter ,ounter,Exposure to bed fire due to burning cigarette, subsequent encounter"
117
+ }
118
+ ]
119
+ }
120
+ ],
121
+ };
122
+
123
+ const sampledata = {
124
+ "datavalue": 5396,
125
+ "displayvalue": "PROTOCOL HISTORY TEMPLATE",
126
+ "selected": false,
127
+ "isexpand": false,
128
+ "access": 2,
129
+ "accessname": "CONSULTANT",
130
+ "description": "",
131
+ "entryusername": "DR. SOJAN GEORGE K",
132
+ "entrydate": "08-05-2025",
133
+ "modifieddate": "1900-01-01",
134
+ "updatestatus": 0,
135
+ "updatecolor": "#000c00",
136
+ "datagroup1": [{
137
+ "datavalue": 7182,
138
+ "hosumrclassificationnature": 53,
139
+ "displayvalue": "PROTOCOL HISTORY",
140
+ "selected": false,
141
+ "isexpand": false
142
+ }, {
143
+ "datavalue": 7183,
144
+ "hosumrclassificationnature": 10,
145
+ "displayvalue": "VITAL SIGNS",
146
+ "selected": false,
147
+ "isexpand": false
148
+ }],
149
+ "consultationnature": [{
150
+ "code": 2,
151
+ "consultationtype":
152
+ "FIRSTVISIT",
153
+ "consultationtypecolor": "#0066ff"
154
+ },
155
+ {
156
+ "code": 3,
157
+ "consultationtype": "REVISIT", "consultationtypecolor": "#00cc00"
158
+ }, {
159
+ "code": 4,
160
+ "consultationtype":
161
+ "RENEWAL",
162
+ "consultationtypecolor": "#ff9900"
163
+ }, {
164
+ "code": 5,
165
+ "consultationtype": "REFFERED",
166
+ "consultationtypecolor": "#6600cc"
167
+ }, {
168
+ "code": 6,
169
+ "consultationtype": "OPINION VISIT",
170
+ "consultationtypecolor": "#ff00ff"
171
+ }, {
172
+ "code": 9,
173
+ "consultationtype": "CROSS CONSULTATION",
174
+ "consultationtypecolor": "#00cccc"
175
+ }, {
176
+ "code": 10,
177
+ "consultationtype": "ADMISSION",
178
+ "consultationtypecolor": "#cc3300"
179
+ }],
180
+ "diagnosis": [{
181
+ "diagnosisnature": "F ",
182
+ "diagnosisname": "DS",
183
+ "naturecolor": "#e36922",
184
+ "icd": [{
185
+ "datavalue": "A064",
186
+ "displayvalue":
187
+ "Amebic liver abscess"
188
+ }, {
189
+ "datavalue": "K7030",
190
+ "displayvalue":
191
+ "Alcoholic cirrhosis of liver without ascites"
192
+ }]
193
+ }]
194
+ }
195
+
196
+ const getDiagnosisText = (array) => {
197
+ return array.map((item, index) => {
198
+ const diagnoses = isBNUL(item.icd) ? item.icd.map(icdItem => isNUQ(icdItem.displayvalue) ? icdItem.displayvalue : '').join(' , ') : ''; // Join ICD texts with commas
199
+ return `${isNU(item.diagnosisname) ? item.diagnosisname : ''} - ${diagnoses}`; // Return the formatted diagnosis string
200
+ }).join(' , '); // Join all diagnosis blocks with commas
201
+ }
202
+
203
+ function textSplit(params) {
204
+
205
+ const texts = isNUQ(params) && params.length > 0 ? params : " ";
206
+ return texts.split("");
207
+ }
208
+
209
+ function foreGround(value) {
210
+
211
+ return (
212
+ <TouchableHighlight
213
+ onPress={() => {
214
+ // console.log('TouchableHighlight')
215
+ props.Cardcallback ? props.Cardcallback(value) : null
216
+ }}
217
+ underlayColor={'#f0f0f0'}
218
+ style={{
219
+ alignSelf: 'center',
220
+ width: '99%',
221
+ borderWidth: 0,
222
+ borderRadius: 10,
223
+ backgroundColor: '#efffff',
224
+ minHeight: Dimensions.get('screen').height * 0.07,
225
+ flexDirection: 'row',
226
+ ...CShadowDynamic(-2, 2, 4, 0, Global.AppTheme.primary_color)
227
+
228
+ }}>
229
+ <View style={{ flexDirection: 'row', width: '100%' }}>
230
+ <View style={{
231
+ borderBottomLeftRadius: 10, borderTopStartRadius: 10, backgroundColor: '#465b95', alignItems: 'center', justifyContent: 'center', width: '3%', flexDirection: 'column',
232
+ }}>
233
+ {isNU(value.accessname) ? textSplit(value.accessname).map((item, k) => {
234
+ return (
235
+ <Text key={k} style={{
236
+ textShadowColor: 'black',
237
+ textShadowRadius: 1,
238
+ textShadowOffset: { width: 0, height: 1 },
239
+ textAlign: 'center', fontSize: normalize(5.5), lineHeight: normalize(6.5), fontWeight: 'bold', color: 'white',
240
+ }}>
241
+ {item}
242
+ </Text>
243
+ )
244
+ }) : null}
245
+ </View>
246
+ <View style={{ width: '97%' }}>
247
+ <Text style={{ fontWeight: 'bold', color: 'black' }}>{" "}{value.displayvalue}</Text>
248
+ {isBNUL(value.consultationnature) ?
249
+ <View style={{ flexWrap: 'wrap', flexDirection: 'row' }}>
250
+ {value.consultationnature.map((val) => {
251
+ return (
252
+ <View style={{ borderWidth: 0.5, borderColor: 'grey', borderRadius: 15, backgroundColor: val.color, padding: normalize(2), margin: normalize(2) }}>
253
+ <Text style={{
254
+ color: 'white',
255
+ fontWeight: 'bold',
256
+ fontSize: normalize(6),
257
+ textShadowColor: 'black',
258
+ textShadowRadius: 1,
259
+ textShadowOffset: { width: 0, height: 1 },
260
+ }}>{val.displayvalue}</Text>
261
+ </View>
262
+ )
263
+ })}
264
+ </View>
265
+ : null}
266
+ {isBNUL(value.diagnosis) ?
267
+ <View style={{ width: '100%' }}>
268
+ {/* <AutoScroll delay={0} duration={20000}> */}
269
+ {/* <ScrollView horizontal={true}> */}
270
+ <View style={{ flexDirection: 'row', paddingLeft: normalize(0) }}>
271
+ <View style={{ flexDirection: 'row', alignItems: 'center', }}>
272
+ <Text numberOfLines={1} style={{ fontSize: normalize(10), fontWeight: 'bold', color: Global.AppTheme.primary_color, paddingLeft: normalize(5) }}>{
273
+ getDiagnosisText(value.diagnosis)}
274
+ </Text>
275
+ </View>
276
+ </View>
277
+ {/* </ScrollView> */}
278
+ {/* </AutoScroll>// hh:mm A */}
279
+ </View>
280
+ : null}
281
+ <View style={{ flexDirection: 'row', alignItems: 'center' }}>
282
+ {isNUQ(value.entrydate) ?
283
+ <HOCIcons.MaterialIcons
284
+ name={"create-new-folder"}
285
+ color={"black"}
286
+ size={normalize(7)}
287
+ style={{ marginHorizontal: normalize(2) }}
288
+ />
289
+ : null}
290
+ {isNUQ(value.entrydate) ?
291
+ <Text style={{ color: 'black', fontWeight: 'bold', fontSize: normalize(7) }}>
292
+ {value.entrydate}
293
+ </Text>
294
+ : null}
295
+ {isNUQ(value.entryusername) ?
296
+ <Text style={{ color: 'black', fontWeight: 'bold', fontSize: normalize(7) }}>
297
+ {", "}{value.entryusername}
298
+ </Text>
299
+ : null}
300
+ {isNUQ(value.modifieddate) ?
301
+ <HOCIcons.FontAwesome5
302
+ name={"edit"}
303
+ color={"black"}
304
+ size={normalize(7)}
305
+ style={{ marginHorizontal: normalize(5) }}
306
+ />
307
+ : null}
308
+ {isNUQ(value.modifieddate) ?
309
+ <Text style={{ color: 'black', fontWeight: 'bold', fontSize: normalize(7) }}>
310
+ {moment(value.modifieddate).format('DD-MM-YYYY')}
311
+ </Text>
312
+ : null}
313
+ {isNUQ(value.modifieduser) ?
314
+ <Text style={{ color: 'black', fontWeight: 'bold', fontSize: normalize(7) }}>
315
+ {", "}{value.modifieduser}
316
+ </Text>
317
+ : null}
318
+ </View>
319
+ </View>
320
+ </View>
321
+ </TouchableHighlight>
322
+ )
323
+ }
324
+
325
+ function backGround(value) {
326
+
327
+ return (
328
+ <TouchableOpacity style={{
329
+ alignSelf: 'center',
330
+ width: '99%',
331
+ borderWidth: 0.5,
332
+ borderColor:'lightgrey',
333
+ borderRadius: 10,
334
+ backgroundColor: '#f0f0f0',
335
+ minHeight: Dimensions.get('screen').height * 0.07,
336
+ justifyContent: 'flex-start',
337
+ alignItems: 'center',
338
+ flexDirection: 'row'
339
+
340
+ }}>
341
+ <View style={{ width: '50%', paddingLeft: normalize(5) }}>
342
+ <HShadowButton
343
+ useicon={true}
344
+ usetext={true}
345
+ buttonstyle={{
346
+ margin: normalize(5),
347
+ borderLeftWidth: 0,
348
+ borderBottomWidth: 0,
349
+ borderRadius: 5,
350
+ borderWidth: 0,
351
+ borderColor: Global.AppTheme.primary_color,
352
+ justifyContent: 'center',
353
+ alignItems: 'center',
354
+ backgroundColor: 'white',
355
+ height: Dimensions.get('screen').height * 0.06,
356
+ width: Dimensions.get('screen').height * 0.06,
357
+ ...CButtonShadow(),
358
+ }}
359
+ icongroup={5}
360
+ iconcolor={Global.AppTheme.primary_color}
361
+ iconname={'stethoscope'}
362
+ iconsize={normalize(28)}
363
+ iconstyle={{ textAlign: 'center', borderWidth: 0 }}
364
+ displaytext={'HISTORY'}
365
+ buttonCallback={() => {
366
+ // getFooterIconsFunctions(item)
367
+ }}
368
+ disabletextadjust={true}
369
+ numberOfLines={2}
370
+ textstyle={{
371
+ color: Global.AppTheme.primary_color,
372
+ fontSize: normalize(8),
373
+ textAlign: 'center',
374
+ fontWeight: 'normal',
375
+ // lineHeight: normalize(8)
376
+ }}
377
+ />
378
+ </View>
379
+ <View style={{ width: '50%', justifyContent: 'flex-end', alignItems: 'flex-end', paddingRight: normalize(5) }}>
380
+ <HShadowButton
381
+ useicon={true}
382
+ usetext={true}
383
+ buttonstyle={{
384
+ margin: normalize(5),
385
+ borderLeftWidth: 0,
386
+ borderBottomWidth: 0,
387
+ borderRadius: 5,
388
+ borderWidth: 0,
389
+ borderColor: Global.AppTheme.primary_color,
390
+ justifyContent: 'center',
391
+ alignItems: 'center',
392
+ backgroundColor: 'white',
393
+ height: Dimensions.get('screen').height * 0.06,
394
+ width: Dimensions.get('screen').height * 0.06,
395
+ ...CButtonShadow(),
396
+ }}
397
+ icongroup={5}
398
+ iconcolor={Global.AppTheme.primary_color}
399
+ iconname={'stethoscope'}
400
+ iconsize={normalize(28)}
401
+ iconstyle={{ textAlign: 'center', borderWidth: 0 }}
402
+ displaytext={'HISTORY'}
403
+ buttonCallback={() => {
404
+ // getFooterIconsFunctions(item)
405
+ }}
406
+ disabletextadjust={true}
407
+ numberOfLines={2}
408
+ textstyle={{
409
+ color: Global.AppTheme.primary_color,
410
+ fontSize: normalize(8),
411
+ textAlign: 'center',
412
+ fontWeight: 'normal',
413
+ // lineHeight: normalize(8)
414
+ }}
415
+ />
416
+ </View>
417
+ </TouchableOpacity>
418
+ )
419
+ }
420
+
421
+ return (
422
+ <SwipeRow
423
+ useNativeDriver={true}
424
+ swipeToOpenPercent={1}
425
+ swipeToClosePercent={1}
426
+ leftOpenValue={normalize(100)}
427
+ rightOpenValue={-normalize(100)}
428
+ style={{
429
+ borderRadius: 10,
430
+ width: '100%',
431
+ // marginBottom: normalize(7)
432
+ }}
433
+ >
434
+ {backGround(templatedata)}
435
+ {foreGround(templatedata)}
436
+ </SwipeRow>
437
+ )
438
+ }