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

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 (191) hide show
  1. package/index.d.ts +2 -66
  2. package/index.js +1 -66
  3. package/package.json +1 -1
  4. package/src/Alerts/AAlert.js +0 -137
  5. package/src/Alerts/AAlertIOS.js +0 -97
  6. package/src/Alerts/ABlink.js +0 -40
  7. package/src/Common/Icons.js +0 -49
  8. package/src/Common/NetworkServiceCall.js +0 -265
  9. package/src/CommonStyle/CommonTheme.js +0 -11
  10. package/src/CommonStyle/ComponentFunctions.js +0 -632
  11. package/src/CommonStyle/PopupStyle.js +0 -146
  12. package/src/CommonStyle/commonStyle.js +0 -93
  13. package/src/CommonStyle/componentStyle.js +0 -545
  14. package/src/CommonStyle/optionListStyles.js +0 -175
  15. package/src/Components/ByProductPage.js +0 -200
  16. package/src/Components/CDropDownListNew.js +0 -153
  17. package/src/Components/CSupplierList.js +0 -88
  18. package/src/Components/CVerificationCard.js +0 -2822
  19. package/src/Components/CustomButton.js +0 -67
  20. package/src/Components/CustomCard.js +0 -127
  21. package/src/Components/CustomTextInput.js +0 -47
  22. package/src/Components/EquipmentPage.js +0 -313
  23. package/src/Components/FilterInput.Copy.js +0 -723
  24. package/src/Components/FilterInput.js +0 -569
  25. package/src/Components/HSubHeading.js +0 -68
  26. package/src/Components/HeaderCard.js +0 -40
  27. package/src/Components/MoreOptionsScreen.js +0 -251
  28. package/src/Components/NonSwipableProductCard.js +0 -226
  29. package/src/Components/NonSwipableSupplierCard.js +0 -348
  30. package/src/Components/ProductCard.js +0 -1336
  31. package/src/Components/QualityProductCard.js +0 -1059
  32. package/src/Components/RateProductCard.js +0 -1452
  33. package/src/Components/RawMaterial.js +0 -261
  34. package/src/Components/SDropDownEdited.js +0 -549
  35. package/src/Components/SDropDownNew.js +0 -529
  36. package/src/Components/SHelpDescription.js +0 -147
  37. package/src/Components/STextInputNew.js +0 -510
  38. package/src/Components/SearchProductCard.js +0 -470
  39. package/src/Components/StageByProduct.js +0 -199
  40. package/src/Components/SupplierCard.js +0 -243
  41. package/src/Components/SupplierInvoiceCard.js +0 -405
  42. package/src/Components/SwipableSupplierCard.js +0 -136
  43. package/src/Components/TagTemplate.js +0 -74
  44. package/src/Components/WrappedComponent.js +0 -25
  45. package/src/Custom/CBooking.js +0 -944
  46. package/src/Custom/CBookingPostpone.js +0 -1822
  47. package/src/Custom/CCalendar.js +0 -560
  48. package/src/Custom/CCard.js +0 -880
  49. package/src/Custom/CDetailCard.js +0 -205
  50. package/src/Custom/CHelpImage.js +0 -52
  51. package/src/Custom/CReport.js +0 -569
  52. package/src/Custom/CScrollView.js +0 -73
  53. package/src/Custom/CSignature.js +0 -112
  54. package/src/Custom/CSliderMenu.js +0 -339
  55. package/src/Custom/CSupplierCard.js +0 -99
  56. package/src/Custom/CTemplateCard.js +0 -438
  57. package/src/Custom/CTokenAllocation.js +0 -1402
  58. package/src/Custom/CTokenListOverlay.js +0 -122
  59. package/src/Custom/CWardStatus.js +0 -444
  60. package/src/Custom/Charts/CBarChart.js +0 -218
  61. package/src/Custom/Charts/CDashBoardList.js +0 -133
  62. package/src/Custom/Charts/CDashBoardTable.js +0 -172
  63. package/src/Custom/Charts/CLineChart.js +0 -193
  64. package/src/Custom/Charts/CPieChart.js +0 -186
  65. package/src/Custom/Loader.js +0 -182
  66. package/src/Custom/OUserView.js +0 -1121
  67. package/src/Custom/PreviewDosage.js +0 -115
  68. package/src/Custom/SearchLoader.js +0 -32
  69. package/src/Custom/TableComponent/CActivityTable.js +0 -707
  70. package/src/Custom/TableComponent/CMoreButtonTable.js +0 -197
  71. package/src/Custom/TableComponent/CTable.js +0 -185
  72. package/src/Custom/TableComponent/CTextBody.js +0 -40
  73. package/src/Custom/TableComponent/CTextHeader.js +0 -17
  74. package/src/Custom/TableComponent/PreviewPrescriptionNew.js +0 -1011
  75. package/src/Custom/TableComponent/SDropdownTable.js +0 -491
  76. package/src/Custom/TableComponent/TagTable.js +0 -1200
  77. package/src/CustomComponents/CAddColumn.js +0 -140
  78. package/src/CustomComponents/CAssessmentDelete.js +0 -307
  79. package/src/CustomComponents/CAwesomeButton.js +0 -83
  80. package/src/CustomComponents/CAwesomeMoreButton.js +0 -54
  81. package/src/CustomComponents/CBackHandler.js +0 -273
  82. package/src/CustomComponents/CCalendar.js +0 -243
  83. package/src/CustomComponents/CCommentOverlay.js +0 -202
  84. package/src/CustomComponents/CComments.js +0 -162
  85. package/src/CustomComponents/CContainerView.js +0 -24
  86. package/src/CustomComponents/CCustomTextInput.js +0 -336
  87. package/src/CustomComponents/CDetailView.js +0 -40
  88. package/src/CustomComponents/CDropDownList.js +0 -153
  89. package/src/CustomComponents/CDropdownSelect.js +0 -555
  90. package/src/CustomComponents/CFooterView.js +0 -42
  91. package/src/CustomComponents/CImagePickerSave.js +0 -316
  92. package/src/CustomComponents/CModalOverlay.js +0 -91
  93. package/src/CustomComponents/CNetworkStatus.js +0 -327
  94. package/src/CustomComponents/CNotesInstructions.js +0 -1000
  95. package/src/CustomComponents/COverlay.js +0 -81
  96. package/src/CustomComponents/CRemarks.js +0 -176
  97. package/src/CustomComponents/CRowAdd.js +0 -143
  98. package/src/CustomComponents/CSummaryDropDown.js +0 -327
  99. package/src/CustomComponents/CText.js +0 -9
  100. package/src/CustomComponents/CVectorIcon.js +0 -34
  101. package/src/CustomComponents/HtmlContentViewer.js +0 -65
  102. package/src/CustomComponents/PdfContentViewer.js +0 -90
  103. package/src/CustomComponents/SDropDownDosage.js +0 -1087
  104. package/src/CustomComponents/SwipableProductCard.js +0 -246
  105. package/src/CustomComponents/SwipableProductImageCard.js +0 -254
  106. package/src/CustomComponents/WorkOrderDetails.js +0 -1216
  107. package/src/CustomComponents/WorkOrderDetailsPage.js +0 -1213
  108. package/src/HOC/ConfirmOverlay.js +0 -192
  109. package/src/HOC/HHeading.js +0 -70
  110. package/src/HOC/HMoreButton.js +0 -88
  111. package/src/HOC/HNatureHeading.js +0 -402
  112. package/src/HOC/HOCIcons.js +0 -80
  113. package/src/HOC/HOverlayCentered.js +0 -140
  114. package/src/HOC/HShadowButton.js +0 -45
  115. package/src/HOC/HShadowCountButton.js +0 -82
  116. package/src/HOC/OptionOverlay.js +0 -48
  117. package/src/Json/Chart.json +0 -818
  118. package/src/Json/Consultation.json +0 -622
  119. package/src/Json/CreditBill.json +0 -490
  120. package/src/Json/Dropdown.json +0 -216
  121. package/src/Json/DropdownConsultation.json +0 -228
  122. package/src/Json/DynamicReports.json +0 -623
  123. package/src/Json/Footer.json +0 -79
  124. package/src/Media/AudioScreen.js +0 -342
  125. package/src/Media/BarcodeScan.js +0 -145
  126. package/src/Media/CAudioPlay.js +0 -228
  127. package/src/Media/CCaptureImageWithoutEdit.js +0 -330
  128. package/src/Media/CImageGallery.js +0 -289
  129. package/src/Media/CImageZoom.js +0 -82
  130. package/src/Media/CSingleImage.js +0 -391
  131. package/src/Media/CSketchCanvas.js +0 -76
  132. package/src/Media/CVideoPlay.js +0 -31
  133. package/src/Media/DocumentScreen.js +0 -362
  134. package/src/Media/DrawingScreen.js +0 -578
  135. package/src/Media/ImageScreen.js +0 -309
  136. package/src/Media/RecordAudio.js +0 -250
  137. package/src/Media/RecordVideo.js +0 -223
  138. package/src/Media/VideoScreen.js +0 -378
  139. package/src/Navigation/PageNavigation.js +0 -224
  140. package/src/Navigation/useFocusEffect.js +0 -2
  141. package/src/Navigation/useFocusEffect.native.js +0 -1
  142. package/src/Navigation/useFocusEffect.web.js +0 -1
  143. package/src/Navigation/useIsFocused.js +0 -1
  144. package/src/Navigation/useIsFocused.native.js +0 -1
  145. package/src/Navigation/useIsFocused.web.js +0 -1
  146. package/src/Navigation/useNavigation.js +0 -2
  147. package/src/Navigation/useNavigation.native.js +0 -1
  148. package/src/Navigation/useNavigation.web.js +0 -1
  149. package/src/Screens/CMedications.js +0 -528
  150. package/src/Screens/CWebViewGallery.js +0 -203
  151. package/src/Screens/ChartScan.js +0 -279
  152. package/src/Screens/ChartScreenNew.js +0 -1579
  153. package/src/Screens/Consultation.js +0 -1500
  154. package/src/Screens/Dashboard.js +0 -778
  155. package/src/Screens/FileExplorer.js +0 -288
  156. package/src/Screens/Footer.js +0 -340
  157. package/src/Screens/ForgotPassword.js +0 -288
  158. package/src/Screens/HeaderBlock.js +0 -353
  159. package/src/Screens/Login.js +0 -328
  160. package/src/Screens/Notification.js +0 -149
  161. package/src/Screens/OcrScreen.js +0 -20
  162. package/src/Screens/PdfPreview.js +0 -507
  163. package/src/Screens/RegistrationDetails.js +0 -467
  164. package/src/Screens/SearchScreen.js +0 -582
  165. package/src/Screens/Splash.js +0 -788
  166. package/src/Screens/SwipeLeftView.js +0 -1867
  167. package/src/StaticComponents/SAlphabet.js +0 -47
  168. package/src/StaticComponents/SCheckBox.js +0 -42
  169. package/src/StaticComponents/SDatePicker.js +0 -208
  170. package/src/StaticComponents/SDatePickerLabel.js +0 -253
  171. package/src/StaticComponents/SDatePickerNew.js +0 -258
  172. package/src/StaticComponents/SDateTimePickerNew.js +0 -381
  173. package/src/StaticComponents/SDropDownGenerate.js +0 -450
  174. package/src/StaticComponents/SDropDownHoc.js +0 -636
  175. package/src/StaticComponents/SDropDownIcon.js +0 -500
  176. package/src/StaticComponents/SMenuBox.js +0 -131
  177. package/src/StaticComponents/SOverlay.js +0 -177
  178. package/src/StaticComponents/SOverlayTextInput.js +0 -109
  179. package/src/StaticComponents/SSearch.js +0 -438
  180. package/src/StaticComponents/SSearchBar.js +0 -53
  181. package/src/StaticComponents/SSpeedDial.js +0 -303
  182. package/src/StaticComponents/STextInput.js +0 -289
  183. package/src/StaticComponents/STextInputProps.js +0 -36
  184. package/src/StaticComponents/STimePicker.js +0 -171
  185. package/src/StaticComponents/STimingDropDownNew.js +0 -1585
  186. package/src/StaticComponents/STimingSwitch.js +0 -34
  187. package/src/layout/CContainerView.js +0 -21
  188. package/src/layout/CDetailView.js +0 -81
  189. package/src/layout/HeaderBlock.js +0 -353
  190. package/src/layout/INVLoginLayout.js +0 -657
  191. package/src/layout/Loader.js +0 -176
@@ -1,202 +0,0 @@
1
- import React, { useState, useEffect, useMemo, useCallback } from 'react';
2
- import { Text, View, ScrollView, Dimensions, FlatList, TouchableOpacity, TextInput, KeyboardAvoidingView, TouchableWithoutFeedback } from 'react-native';
3
- import { isBNU, isBNUL, isNU, normalize } from '../CommonStyle/ComponentFunctions';
4
- import HOCIcons from '../HOC/HOCIcons';
5
- import CDetailView from './CDetailView';
6
- import CAwesomeButton from './CAwesomeButton';
7
- import { Global } from '../../../../../src/Common/Global';
8
- import CModalOverlay from './CModalOverlay';
9
-
10
- export default function CEditorOverlay(props) {
11
-
12
- const [refresh, setRefresh] = useState(0);
13
- const [overlay, setOverlay] = useState(true);
14
- const [autofocus, setAutoFocus] = useState(false);
15
- const [Comments, setComments] = useState(isNU(props.data) ? props.data : null);
16
-
17
- function getOverlayChildrenWrapperStyle() {
18
-
19
- return isNU(props.overlaystyle) ?
20
- props.overlaystyle
21
- :
22
- {
23
- borderRadius: 10,
24
- height: Dimensions.get('window').height * 0.3,
25
- borderWidth: 3,
26
- borderColor: 'darkblue',
27
- alignSelf: 'center',
28
- width: Dimensions.get('screen').width * 0.9,
29
- alignItems: 'center',
30
- justifyContent: 'flex-start',
31
- padding: 0,
32
- backgroundColor: 'transparent',
33
- };
34
- }
35
-
36
- function FnOnchangeText(text) {
37
- setAutoFocus((prevAutoFocus) => false);
38
- setComments((prevComments) => text);
39
- props.data = text;
40
- props.callback(text);
41
- // memoizedCallback(text);
42
- }
43
-
44
- const FnEditSomeContent = useMemo(() => { // to edit only the added text , first text cannot be edited because it is restricted by its length
45
- return (text) => {
46
- const newTextAfterHello = text.substring(props.editcontent.length);
47
- const newNewText = `${props.editcontent}${newTextAfterHello}`;
48
- setComments(newNewText);
49
- props.callback(newNewText);
50
- };
51
- }, []);
52
-
53
- const handleChangeText = useMemo(() => {
54
- return props.editcontentstatus ? FnEditSomeContent : FnOnchangeText;
55
- }, [props.editcontentstatus]);
56
-
57
- return (
58
-
59
- // overlay ? (
60
- <CModalOverlay
61
- visible={overlay}
62
- onClose={() => {
63
- setAutoFocus(false),
64
- setOverlay(false),
65
- setRefresh(refresh + 1),
66
- (isBNU(props.OverlayClose) ? props.OverlayClose(true) : null);
67
- }}
68
- closeOnTouchOutside
69
- animationType="zoomIn"
70
- containerStyle={{ backgroundColor: 'transparent' }}
71
- childrenWrapperStyle={getOverlayChildrenWrapperStyle()}
72
- animationDuration={500}>
73
- <CDetailView
74
- overlay={true}
75
- >
76
- <View style={{ borderRadius: 10, flex: 1, justifyContent: 'center', alignItems: 'center', backgroundColor: 'white' }}>
77
- <View
78
- style={{
79
- flexDirection: 'row',
80
- justifyContent: 'space-between',
81
- alignItems: 'center',
82
- width: '100%',
83
- marginTop: normalize(5),
84
- }}>
85
- <Text
86
- style={{
87
- color: Global.AppTheme.primary_color,
88
- fontSize: normalize(11),
89
- fontWeight: 'bold',
90
- }}>
91
- {' '}
92
- </Text>
93
- <Text
94
- style={{
95
- color: Global.AppTheme.primary_color,
96
- fontSize: normalize(12),
97
- fontWeight: 'bold',
98
- }}>
99
- {isBNU(props.heading) ? props.heading : 'COMMENTS'}
100
- </Text>
101
- <TouchableOpacity
102
- onPress={() => {
103
- setAutoFocus(false),
104
- setOverlay(false),
105
- setRefresh(refresh + 1),
106
- (isBNU(props.OverlayClose) ? props.OverlayClose(true) : null);
107
- }}>
108
- <HOCIcons.FontAwesome5 name={'angle-double-down'} size={normalize(25)} style={{ marginHorizontal: normalize(5) }} color={Global.AppTheme.primary_color} />
109
- </TouchableOpacity>
110
- </View>
111
- <View style={{ flex: 1, width: '100%', alignSelf: 'center', justifyContent: 'flex-start', alignItems: 'center' }}>
112
-
113
-
114
- <TextInput
115
- style={{
116
- // flex: 1,
117
- minHeight: normalize(100),
118
- fontWeight: 'bold',
119
- borderWidth: 1,
120
- borderColor: '#bdbdbdc4',
121
- borderRadius: 6,
122
- width: '95%',
123
- textAlignVertical: 'top',
124
- paddingVertical: normalize(10),
125
- paddingHorizontal: normalize(10),
126
- backgroundColor: '#ebebebc4',
127
- marginVertical: normalize(5),
128
- color: 'black',
129
- fontSize: normalize(15),
130
- }}
131
- // autoFocus={autofocus ? true : false}
132
- value={Comments}
133
- underlineColorAndroid="transparent"
134
- placeholder="Type Here"
135
- placeholderTextColor="lightgrey"
136
- onChangeText={handleChangeText}
137
- numberOfLines={5}
138
- multiline={props.disablemultiline ? false : true}
139
- >
140
- {/* {props.data ? props.data : null} */}
141
- </TextInput>
142
- </View>
143
-
144
-
145
- <View style={{ paddingHorizontal: normalize(10), flexDirection: 'row', alignItems: 'flex-start', justifyContent: 'flex-start', borderWidth: 0, width: '100%' }}>
146
- <CAwesomeButton
147
- callback={(k) => {
148
- setAutoFocus(false),
149
- setOverlay(false),
150
- setRefresh(refresh + 1),
151
- (isBNU(props.onsavecallback) ? props.onsavecallback(Comments) : null);
152
- }}
153
- buttonstyle={{
154
- 'borderRadius': 10,
155
- 'borderWidth': 0.5,
156
- 'height': Dimensions.get('screen').height * 0.07,
157
- 'width': Dimensions.get('screen').height * 0.07,
158
- 'backgroundColor': '#f2f3ff',
159
- 'paddingHorizontal': 0,
160
- 'raiseLevel': 4,
161
- 'paddingBottom': 0,
162
- 'borderColor': 'lightblue',
163
- 'paddingTop': 0,
164
- 'style': {
165
- padding: 0,
166
- marginHorizontal: normalize(2),
167
- marginVertical: normalize(2),
168
- },
169
- }}
170
- viewstyle={{
171
- borderWidth: 0,
172
- borderRadius: 0,
173
- justifyContent: 'center',
174
- alignItems: 'center',
175
- }}
176
- icon={
177
- props.footericon ?
178
- props.footericon :
179
- {
180
- 'icongroup': 1,
181
- 'name': 'select1',
182
- 'color': 'darkblue',
183
- 'size': normalize(20),
184
- 'style': {
185
- textAlign: 'center',
186
- },
187
- }}
188
- text={{
189
- fontSize: normalize(7),
190
- fontWeight: 'bold',
191
- color: 'darkblue',
192
- textAlign: 'center',
193
- }}
194
- displaytext={props.footerbuttontext ? props.footerbuttontext : 'Select'}
195
- />
196
- </View>
197
- </View>
198
- </CDetailView>
199
- </CModalOverlay>
200
- // ) : null
201
- );
202
- }
@@ -1,162 +0,0 @@
1
- import React, { useState, useEffect, memo } from 'react';
2
- import { Text, View, Image, TouchableOpacity, TextInput, Dimensions } from 'react-native';
3
- // import {
4
- // useDimensions
5
- // } from '@react-native-community/hooks';
6
- import { colors } from '../CommonStyle/commonStyle';
7
- import { normalize } from '../CommonStyle/componentStyle';
8
- import popupStyles, {
9
- getPopupTextAreaChildContainer,
10
- getPopupTextAreaStyle,
11
- } from '../CommonStyle/PopupStyle';
12
- import Entypo from 'react-native-vector-icons/Entypo';
13
- import { notifyMessage } from '../CommonStyle/ComponentFunctions';
14
- // import SCheckbox from '../Static Components/SCheckbox';
15
-
16
- function CComments(props) {
17
- const { width, height } = Dimensions.get('window');
18
- const [data, setData] = useState(props.data);
19
- const [isShow, setIsShow] = useState(false);
20
- const [comment, setComment] = useState('');
21
- const [infectioncontrol, setInfectioncontrol] = useState('');
22
- var test = [];
23
-
24
- useEffect(() => {
25
- setData(props.data);
26
- data.functionname == 'comments' ?
27
- (data.comments != null && data.comments != undefined ?
28
- setComment(data.comments)
29
- : null)
30
- :
31
- null;
32
- }, []);
33
-
34
- const FooterArray = [
35
- {
36
- key: 1,
37
- display: 'Patient',
38
- checked: false,
39
- },
40
- {
41
- key: 2,
42
- display: 'Doctor',
43
- checked: false,
44
- },
45
- {
46
- key: 3,
47
- display: 'Nurse',
48
- checked: false,
49
- },
50
- {
51
- key: 4,
52
- display: 'Staff',
53
- checked: false,
54
- },
55
- ];
56
-
57
-
58
- function saveRemarks() {
59
- if (data.functionname == 'comments') {
60
- setData({ ...data, ['comments']: comment });
61
- // props.refresh(1)
62
- // props.IconColour(true)
63
- props.visibility(false);
64
- }
65
- else {
66
- let dataset = {
67
-
68
- };
69
- NetworkServiceCall('post', buttonapi, output)
70
- .then(function (response) {
71
- if (response.httpstatus == 200) {
72
-
73
- }
74
- else {
75
- notifyMessage('Comment Not Saved',2);
76
- }
77
- });
78
- }
79
- }
80
- function ChangeValue(changevalue) {
81
- if (data.functionname == 'comments') {
82
- setComment(changevalue);
83
- // data.itemedited == false ? data.itemedited = true : null
84
- data.comments = changevalue;
85
- } else {
86
- setInfectioncontrol(changevalue);
87
- }
88
- }
89
- return (
90
- <View>
91
- <Text style={{ alignSelf: 'center', fontSize: normalize(12), fontWeight: 'bold', marginTop: normalize(-5) }}>{data.name}</Text>
92
- <View
93
- style={{
94
- flex: 1,
95
- alignItems: 'center',
96
- marginTop: height * 0.01,
97
- }}
98
-
99
- >
100
- <View style={getPopupTextAreaChildContainer(width, height, data.hasOwnProperty('itemedited') && data.itemedited ? colors.color_editedindication_Border : colors.color_componentBordercolor)}>
101
- <TextInput
102
- editable={true} // To scroll data , Editable is checked in onChangeText props
103
- keyboardType={data.hasOwnProperty('keyboardtype') ? data.keyboardtype : 'default'}
104
- placeholder={data.hasOwnProperty('iseditable') && data.iseditable ?
105
- data.hasOwnProperty('placeholder') && data.placeholder != null && data.placeholder.length > 2 ? data.placeholder : 'Type Here'
106
- : ''
107
- }
108
- placeholderTextColor={'lightgray'}
109
- // onChangeText={changevalue => data.hasOwnProperty('iseditable') && data.iseditable ? ChangeValue(changevalue) : null}
110
- onChangeText={changevalue => ChangeValue(changevalue)}
111
- // value={data.value}
112
- value={data.functionname == 'comments' ? comment : infectioncontrol}
113
- numberOfLines={5}
114
- multiline={true}
115
- scrollEnabled
116
- style={getPopupTextAreaStyle(width, height)}
117
- />
118
- </View>
119
-
120
- {data.functionname == 'infectioncontrol' ?
121
- <View style={{ flexDirection: 'row', justifyContent: 'space-around', width: '100%' }}>
122
- {FooterArray.map((data, i) => {
123
- return (
124
- <View>
125
- <Text>{data.display}</Text>
126
- {/* <SCheckbox
127
- onChangeData={val =>
128
- val == undefined
129
- ? null
130
- : data.checked = val
131
- }
132
- value={data.checked}
133
- /> */}
134
- </View>
135
- );
136
- })}
137
- </View>
138
- : null}
139
-
140
- <View style={popupStyles.overlay_screen_button_view}>
141
-
142
- <TouchableOpacity
143
- style={popupStyles.overlay_screen_small_button_style}
144
- onPress={() => saveRemarks()}>
145
- <Entypo name="save" color="green" size={normalize(20)} />
146
- <Text style={popupStyles.overlay_screen_button_text}>Save</Text>
147
- </TouchableOpacity>
148
-
149
- <TouchableOpacity
150
- style={popupStyles.overlay_screen_small_button_style}
151
- onPress={() => data.comments && data.comments != null && data.comments.length > 0 || infectioncontrol != null && infectioncontrol != undefined && infectioncontrol.length > 0 ? ChangeValue('') : null}
152
- >
153
- <Entypo name="brush" color="#fc6c6c" size={normalize(20)} />
154
- <Text style={popupStyles.overlay_screen_button_text}>Clear</Text>
155
- </TouchableOpacity>
156
- </View>
157
-
158
- </View>
159
- </View>
160
- );
161
- }
162
- export default memo(CComments);
@@ -1,24 +0,0 @@
1
- import React from 'react';
2
- import { StyleSheet, View} from 'react-native';
3
- import { Global } from '../../../../../src/Common/Global';
4
-
5
- const CContainerView = props => {
6
-
7
- const styles = StyleSheet.create({
8
- CContainerView : {
9
- flex: 1,
10
- display: 'flex',
11
- flexDirection: 'column',
12
- height: '100vh',
13
- backgroundColor: Global.AppTheme.primary_color,
14
- },
15
- });
16
-
17
- return (
18
- <View style={styles.CContainerView}>
19
- {props.children}
20
- </View>
21
- );
22
- };
23
-
24
- export default CContainerView;