@nuskin/routine-feature 1.0.1 → 2.0.0

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.
@@ -0,0 +1,318 @@
1
+ import React from 'react';
2
+ import { SafeAreaView, View, StyleSheet, ScrollView, Text, Image, ImageBackground, Pressable } from 'react-native';
3
+ import { VeraHeader, Logo, HeaderCart, colors } from '@ns/mobile-ui';
4
+ import LinearGradient from 'react-native-linear-gradient';
5
+ function RoutineDetails(props) {
6
+ var _props$route, _item$routine_imageCo, _item$routine_imageCo2, _item$routine_imageCo3;
7
+ const item = (_props$route = props.route) === null || _props$route === void 0 ? void 0 : _props$route.params;
8
+ return /*#__PURE__*/React.createElement(SafeAreaView, {
9
+ style: styles.container,
10
+ testID: "routineStack"
11
+ }, /*#__PURE__*/React.createElement(VeraHeader, {
12
+ left: /*#__PURE__*/React.createElement(Logo, {
13
+ accessibilityLabel: "logo"
14
+ }),
15
+ right: /*#__PURE__*/React.createElement(HeaderCart, {
16
+ accessibilityLabel: "crt-btn"
17
+ }),
18
+ title: 'Routine Details',
19
+ accessibilityLabel: "header"
20
+ }), /*#__PURE__*/React.createElement(ScrollView, {
21
+ style: styles.routinesContainer
22
+ }, /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(View, {
23
+ style: {
24
+ position: 'relative'
25
+ }
26
+ }, /*#__PURE__*/React.createElement(ImageBackground, {
27
+ source: {
28
+ uri: (_item$routine_imageCo = item.routine_imageConnection) === null || _item$routine_imageCo === void 0 ? void 0 : (_item$routine_imageCo2 = _item$routine_imageCo.edges[0]) === null || _item$routine_imageCo2 === void 0 ? void 0 : (_item$routine_imageCo3 = _item$routine_imageCo2.node) === null || _item$routine_imageCo3 === void 0 ? void 0 : _item$routine_imageCo3.url
29
+ },
30
+ style: styles.itemPhoto
31
+ }, /*#__PURE__*/React.createElement(LinearGradient, {
32
+ colors: ['rgba(0, 0, 0, 0)', 'rgba(0, 0, 0, 0.6)'],
33
+ locations: [0.6, 1],
34
+ style: styles.imageOverlay
35
+ }), /*#__PURE__*/React.createElement(View, {
36
+ style: styles.itemTitleContainer
37
+ }, /*#__PURE__*/React.createElement(Text, {
38
+ style: styles.itemTextSpan
39
+ }, "Default"), /*#__PURE__*/React.createElement(Text, {
40
+ style: styles.itemTextTitle
41
+ }, item.routine_title)))), /*#__PURE__*/React.createElement(View, {
42
+ style: styles.routineDetailsContainer
43
+ }, /*#__PURE__*/React.createElement(View, {
44
+ style: styles.routineDetails
45
+ }, /*#__PURE__*/React.createElement(Text, {
46
+ style: styles.itemTextDescription
47
+ }, item.routines_description), /*#__PURE__*/React.createElement(Text, {
48
+ style: styles.itemText
49
+ }, item.products_used_label), item.products.map(item => {
50
+ var _item$product_imageCo, _item$product_imageCo2, _item$product_imageCo3;
51
+ return /*#__PURE__*/React.createElement(View, {
52
+ style: {
53
+ flexDirection: 'row'
54
+ }
55
+ }, /*#__PURE__*/React.createElement(Image, {
56
+ source: {
57
+ uri: (_item$product_imageCo = item.product_imageConnection) === null || _item$product_imageCo === void 0 ? void 0 : (_item$product_imageCo2 = _item$product_imageCo.edges[0]) === null || _item$product_imageCo2 === void 0 ? void 0 : (_item$product_imageCo3 = _item$product_imageCo2.node) === null || _item$product_imageCo3 === void 0 ? void 0 : _item$product_imageCo3.url
58
+ },
59
+ style: styles.productPhoto,
60
+ resizeMode: "contain"
61
+ }), /*#__PURE__*/React.createElement(View, {
62
+ style: styles.productName
63
+ }, /*#__PURE__*/React.createElement(Text, {
64
+ style: styles.itemTextProduct
65
+ }, item.product_category), /*#__PURE__*/React.createElement(Text, {
66
+ style: styles.itemTextProduct
67
+ }, item.product_name)));
68
+ }))), item.steps.map((item, index) => {
69
+ var _item$imageConnection, _item$imageConnection2, _item$imageConnection3, _item$imageConnection4, _item$imageConnection5, _item$imageConnection6;
70
+ return /*#__PURE__*/React.createElement(View, {
71
+ key: index,
72
+ style: {
73
+ marginHorizontal: 20,
74
+ marginBottom: 15
75
+ }
76
+ }, /*#__PURE__*/React.createElement(View, {
77
+ style: {
78
+ flexDirection: 'row',
79
+ marginVertical: 10
80
+ }
81
+ }, /*#__PURE__*/React.createElement(Text, {
82
+ style: styles.itemTextTitleIndex
83
+ }, index + 1), /*#__PURE__*/React.createElement(Text, {
84
+ style: styles.itemTextStepTitle
85
+ }, item.step_title)), /*#__PURE__*/React.createElement(View, {
86
+ style: styles[`${item.style ? item.style : 'Container'}`]
87
+ }, (item.style === 'Image' || item.style == 'LumiSpaIO') && /*#__PURE__*/React.createElement(Image, {
88
+ source: {
89
+ uri: (_item$imageConnection = item.imageConnection) === null || _item$imageConnection === void 0 ? void 0 : (_item$imageConnection2 = _item$imageConnection.edges[0]) === null || _item$imageConnection2 === void 0 ? void 0 : (_item$imageConnection3 = _item$imageConnection2.node) === null || _item$imageConnection3 === void 0 ? void 0 : _item$imageConnection3.url
90
+ },
91
+ style: styles.stepImagePhoto,
92
+ resizeMode: "contain"
93
+ }), /*#__PURE__*/React.createElement(View, {
94
+ style: styles[`${item.style}TextContainer`]
95
+ }, /*#__PURE__*/React.createElement(Text, {
96
+ style: styles.itemTextStepDescription
97
+ }, item.step_description), /*#__PURE__*/React.createElement(Text, {
98
+ style: styles.itemTextStepSubDescription
99
+ }, item.step_sub_description), item.style === 'LumiSpaIO' && /*#__PURE__*/React.createElement(Pressable, {
100
+ style: styles.textLumiSpaTreatmentContainer
101
+ }, /*#__PURE__*/React.createElement(Text, {
102
+ style: styles.textLumiSpaTreatment
103
+ }, item.image_title)))), item.style === 'Product' && /*#__PURE__*/React.createElement(View, {
104
+ style: styles.stepProductContainer
105
+ }, /*#__PURE__*/React.createElement(Image, {
106
+ source: {
107
+ uri: (_item$imageConnection4 = item.imageConnection) === null || _item$imageConnection4 === void 0 ? void 0 : (_item$imageConnection5 = _item$imageConnection4.edges[0]) === null || _item$imageConnection5 === void 0 ? void 0 : (_item$imageConnection6 = _item$imageConnection5.node) === null || _item$imageConnection6 === void 0 ? void 0 : _item$imageConnection6.url
108
+ },
109
+ style: styles.stepProductPhoto,
110
+ resizeMode: "contain"
111
+ }), /*#__PURE__*/React.createElement(View, {
112
+ style: styles.productName
113
+ }, /*#__PURE__*/React.createElement(Text, {
114
+ style: styles.itemTextStepProduct
115
+ }, item.image_title), /*#__PURE__*/React.createElement(Text, {
116
+ style: styles.itemTextStepProduct
117
+ }, item.image_description))));
118
+ }))));
119
+ }
120
+ const styles = StyleSheet.create({
121
+ container: {
122
+ flex: 1,
123
+ backgroundColor: colors.white
124
+ },
125
+ routinesContainer: {
126
+ backgroundColor: colors.primaryGray,
127
+ flex: 1
128
+ },
129
+ sectionHeader: {
130
+ textTransform: 'uppercase',
131
+ fontWeight: '600',
132
+ fontSize: 14,
133
+ // color: '#f4f4f4',
134
+ marginTop: 20,
135
+ paddingHorizontal: 15,
136
+ marginBottom: 5
137
+ },
138
+ imageOverlay: {
139
+ position: 'absolute',
140
+ left: 0,
141
+ right: 0,
142
+ top: 0,
143
+ height: '100%'
144
+ },
145
+ item: {
146
+ margin: 10,
147
+ borderRadius: 14
148
+ },
149
+ itemPhoto: {
150
+ width: '100%',
151
+ minHeight: 160,
152
+ aspectRatio: 1.5
153
+ },
154
+ Image: {
155
+ flexDirection: 'row',
156
+ flex: 1,
157
+ backgroundColor: colors.white
158
+ },
159
+ ImageTextContainer: {
160
+ flex: 1,
161
+ padding: 20
162
+ },
163
+ LumiSpaIOTextContainer: {
164
+ flex: 1,
165
+ padding: 20
166
+ },
167
+ Container: {
168
+ flexDirection: 'column',
169
+ flex: 1,
170
+ padding: 20,
171
+ backgroundColor: colors.white
172
+ },
173
+ Product: {
174
+ flexDirection: 'column',
175
+ flex: 1,
176
+ padding: 20,
177
+ backgroundColor: colors.white
178
+ },
179
+ LumiSpaIO: {
180
+ flexDirection: 'row',
181
+ flex: 1,
182
+ backgroundColor: colors.white
183
+ },
184
+ productName: {
185
+ flex: 1,
186
+ justifyContent: 'center',
187
+ marginLeft: 5
188
+ },
189
+ routineDetailsContainer: {
190
+ backgroundColor: 'white',
191
+ paddingTop: 20,
192
+ paddingBottom: 10,
193
+ marginBottom: 10
194
+ },
195
+ routineDetails: {
196
+ flexDirection: 'column',
197
+ paddingHorizontal: 15,
198
+ paddingVertical: 10
199
+ },
200
+ stepImagePhoto: {
201
+ width: 130,
202
+ minHeight: 150
203
+ },
204
+ stepProductPhoto: {
205
+ width: 80,
206
+ height: 80
207
+ },
208
+ stepProductContainer: {
209
+ flexDirection: 'row',
210
+ backgroundColor: colors.white,
211
+ paddingHorizontal: 20,
212
+ paddingBottom: 20
213
+ },
214
+ productPhoto: {
215
+ margin: 2,
216
+ width: 40,
217
+ height: 40,
218
+ borderRadius: 50,
219
+ borderColor: '#EDEDED',
220
+ borderStyle: 'solid',
221
+ borderWidth: 1
222
+ },
223
+ itemTextStepProduct: {
224
+ fontWeight: '400',
225
+ fontSize: 13,
226
+ lineHeight: 18
227
+ },
228
+ itemTitleContainer: {
229
+ flexDirection: 'column',
230
+ justifyContent: 'space-between',
231
+ paddingHorizontal: 15,
232
+ position: 'absolute',
233
+ bottom: 20
234
+ },
235
+ itemTextSpan: {
236
+ color: colors.white,
237
+ fontWeight: '400',
238
+ fontSize: 14,
239
+ textTransform: 'uppercase'
240
+ },
241
+ itemTextTitleIndex: {
242
+ color: colors.accentB400,
243
+ fontWeight: '400',
244
+ fontSize: 20,
245
+ lineHeight: 26,
246
+ paddingRight: 10
247
+ },
248
+ itemTextStepTitle: {
249
+ color: colors.primaryBlack,
250
+ fontWeight: '600',
251
+ fontSize: 18,
252
+ lineHeight: 26
253
+ },
254
+ itemTextStepSubDescription: {
255
+ fontWeight: '700',
256
+ fontSize: 10,
257
+ lineHeight: 15,
258
+ letterSpacing: 0.5,
259
+ paddingTop: 5,
260
+ textTransform: 'uppercase'
261
+ },
262
+ itemTextTitle: {
263
+ color: colors.white,
264
+ fontWeight: '400',
265
+ fontSize: 26
266
+ },
267
+ itemTextDescription: {
268
+ color: colors.primaryBlack,
269
+ fontWeight: '400',
270
+ fontSize: 14,
271
+ lineHeight: 20,
272
+ paddingBottom: 20
273
+ },
274
+ itemText: {
275
+ color: colors.primaryBlack,
276
+ fontWeight: 'bold',
277
+ fontSize: 12,
278
+ letterSpacing: 0.05,
279
+ paddingBottom: 5,
280
+ textTransform: 'uppercase'
281
+ },
282
+ itemTextStepDescription: {
283
+ color: colors.primaryBlack,
284
+ fontWeight: 'bold',
285
+ fontSize: 12,
286
+ letterSpacing: 0.05,
287
+ paddingBottom: 5
288
+ },
289
+ itemTextProduct: {
290
+ color: colors.primaryBlack,
291
+ fontSize: 11,
292
+ fontWeight: '600',
293
+ textTransform: 'uppercase',
294
+ letterSpacing: 0.05
295
+ },
296
+ itemTextSteps: {
297
+ color: colors.primaryBlack,
298
+ fontWeight: 'bold',
299
+ textTransform: 'uppercase'
300
+ },
301
+ textLumiSpaTreatmentContainer: {
302
+ marginTop: 10,
303
+ padding: 10,
304
+ textAlign: 'center',
305
+ borderStyle: 'solid',
306
+ borderWidth: 1,
307
+ borderColor: colors.primaryBlack
308
+ },
309
+ textLumiSpaTreatment: {
310
+ textAlign: 'center',
311
+ fontSize: 14,
312
+ fontWeight: '600',
313
+ lineHeight: 16,
314
+ letterSpacing: 0.05
315
+ }
316
+ });
317
+ export default RoutineDetails;
318
+ //# sourceMappingURL=RoutineDetails.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","SafeAreaView","View","StyleSheet","ScrollView","Text","Image","ImageBackground","Pressable","VeraHeader","Logo","HeaderCart","colors","LinearGradient","RoutineDetails","props","item","route","params","styles","container","routinesContainer","position","uri","routine_imageConnection","edges","node","url","itemPhoto","imageOverlay","itemTitleContainer","itemTextSpan","itemTextTitle","routine_title","routineDetailsContainer","routineDetails","itemTextDescription","routines_description","itemText","products_used_label","products","map","flexDirection","product_imageConnection","productPhoto","productName","itemTextProduct","product_category","product_name","steps","index","marginHorizontal","marginBottom","marginVertical","itemTextTitleIndex","itemTextStepTitle","step_title","style","imageConnection","stepImagePhoto","itemTextStepDescription","step_description","itemTextStepSubDescription","step_sub_description","textLumiSpaTreatmentContainer","textLumiSpaTreatment","image_title","stepProductContainer","stepProductPhoto","itemTextStepProduct","image_description","create","flex","backgroundColor","white","primaryGray","sectionHeader","textTransform","fontWeight","fontSize","marginTop","paddingHorizontal","left","right","top","height","margin","borderRadius","width","minHeight","aspectRatio","ImageTextContainer","padding","LumiSpaIOTextContainer","Container","Product","LumiSpaIO","justifyContent","marginLeft","paddingTop","paddingBottom","paddingVertical","borderColor","borderStyle","borderWidth","lineHeight","bottom","color","accentB400","paddingRight","primaryBlack","letterSpacing","itemTextSteps","textAlign"],"sources":["RoutineDetails.tsx"],"sourcesContent":["import React from 'react';\nimport {\n SafeAreaView,\n View,\n StyleSheet,\n ScrollView,\n Text,\n Image,\n ImageBackground,\n Pressable,\n} from 'react-native';\nimport { VeraHeader, Logo, HeaderCart, colors } from '@ns/mobile-ui';\nimport LinearGradient from 'react-native-linear-gradient';\n\nfunction RoutineDetails(props) {\n const item = props.route?.params;\n return (\n <SafeAreaView style={styles.container} testID=\"routineStack\">\n <VeraHeader\n left={<Logo accessibilityLabel=\"logo\" />}\n right={<HeaderCart accessibilityLabel=\"crt-btn\" />}\n title={'Routine Details'}\n accessibilityLabel=\"header\"\n />\n <ScrollView style={styles.routinesContainer}>\n <>\n <View style={{ position: 'relative' }}>\n <ImageBackground\n source={{\n uri: item.routine_imageConnection?.edges[0]?.node?.url,\n }}\n style={styles.itemPhoto}\n >\n <LinearGradient\n colors={['rgba(0, 0, 0, 0)', 'rgba(0, 0, 0, 0.6)']}\n locations={[0.6, 1]}\n style={styles.imageOverlay}\n />\n <View style={styles.itemTitleContainer}>\n <Text style={styles.itemTextSpan}>Default</Text>\n <Text style={styles.itemTextTitle}>{item.routine_title}</Text>\n </View>\n </ImageBackground>\n </View>\n <View style={styles.routineDetailsContainer}>\n <View style={styles.routineDetails}>\n <Text style={styles.itemTextDescription}>\n {item.routines_description}\n </Text>\n <Text style={styles.itemText}>{item.products_used_label}</Text>\n {item.products.map((item) => {\n return (\n <View style={{ flexDirection: 'row' }}>\n <Image\n source={{\n uri: item.product_imageConnection?.edges[0]?.node?.url,\n }}\n style={styles.productPhoto}\n resizeMode=\"contain\"\n />\n <View style={styles.productName}>\n <Text style={styles.itemTextProduct}>\n {item.product_category}\n </Text>\n <Text style={styles.itemTextProduct}>\n {item.product_name}\n </Text>\n </View>\n </View>\n );\n })}\n </View>\n </View>\n {item.steps.map((item, index) => {\n return (\n <View\n key={index}\n style={{\n marginHorizontal: 20,\n marginBottom: 15,\n }}\n >\n <View\n style={{\n flexDirection: 'row',\n marginVertical: 10,\n }}\n >\n <Text style={styles.itemTextTitleIndex}>{index + 1}</Text>\n <Text style={styles.itemTextStepTitle}>\n {item.step_title}\n </Text>\n </View>\n <View\n style={styles[`${item.style ? item.style : 'Container'}`]}\n >\n {(item.style === 'Image' || item.style == 'LumiSpaIO') && (\n <Image\n source={{\n uri: item.imageConnection?.edges[0]?.node?.url,\n }}\n style={styles.stepImagePhoto}\n resizeMode=\"contain\"\n />\n )}\n <View style={styles[`${item.style}TextContainer`]}>\n <Text style={styles.itemTextStepDescription}>\n {item.step_description}\n </Text>\n <Text style={styles.itemTextStepSubDescription}>\n {item.step_sub_description}\n </Text>\n {item.style === 'LumiSpaIO' && (\n <Pressable style={styles.textLumiSpaTreatmentContainer}>\n <Text style={styles.textLumiSpaTreatment}>\n {item.image_title}\n </Text>\n </Pressable>\n )}\n </View>\n </View>\n {item.style === 'Product' && (\n <View style={styles.stepProductContainer}>\n <Image\n source={{\n uri: item.imageConnection?.edges[0]?.node?.url,\n }}\n style={styles.stepProductPhoto}\n resizeMode=\"contain\"\n />\n <View style={styles.productName}>\n <Text style={styles.itemTextStepProduct}>\n {item.image_title}\n </Text>\n <Text style={styles.itemTextStepProduct}>\n {item.image_description}\n </Text>\n </View>\n </View>\n )}\n </View>\n );\n })}\n </>\n </ScrollView>\n </SafeAreaView>\n );\n}\nconst styles = StyleSheet.create({\n container: {\n flex: 1,\n backgroundColor: colors.white,\n },\n routinesContainer: {\n backgroundColor: colors.primaryGray,\n flex: 1,\n },\n sectionHeader: {\n textTransform: 'uppercase',\n fontWeight: '600',\n fontSize: 14,\n // color: '#f4f4f4',\n marginTop: 20,\n paddingHorizontal: 15,\n marginBottom: 5,\n },\n imageOverlay: {\n position: 'absolute',\n left: 0,\n right: 0,\n top: 0,\n height: '100%',\n },\n item: {\n margin: 10,\n borderRadius: 14,\n },\n itemPhoto: {\n width: '100%',\n minHeight: 160,\n aspectRatio: 1.5,\n },\n Image: {\n flexDirection: 'row',\n flex: 1,\n backgroundColor: colors.white,\n },\n ImageTextContainer: {\n flex: 1,\n padding: 20,\n },\n LumiSpaIOTextContainer: {\n flex: 1,\n padding: 20,\n },\n Container: {\n flexDirection: 'column',\n flex: 1,\n padding: 20,\n backgroundColor: colors.white,\n },\n Product: {\n flexDirection: 'column',\n flex: 1,\n padding: 20,\n backgroundColor: colors.white,\n },\n LumiSpaIO: {\n flexDirection: 'row',\n flex: 1,\n backgroundColor: colors.white,\n },\n productName: {\n flex: 1,\n justifyContent: 'center',\n marginLeft: 5,\n },\n routineDetailsContainer: {\n backgroundColor: 'white',\n paddingTop: 20,\n paddingBottom: 10,\n marginBottom: 10,\n },\n routineDetails: {\n flexDirection: 'column',\n paddingHorizontal: 15,\n paddingVertical: 10,\n },\n stepImagePhoto: {\n width: 130,\n minHeight: 150,\n },\n stepProductPhoto: {\n width: 80,\n height: 80,\n },\n stepProductContainer: {\n flexDirection: 'row',\n backgroundColor: colors.white,\n paddingHorizontal: 20,\n paddingBottom: 20,\n },\n productPhoto: {\n margin: 2,\n width: 40,\n height: 40,\n borderRadius: 50,\n borderColor: '#EDEDED',\n borderStyle: 'solid',\n borderWidth: 1,\n },\n itemTextStepProduct: {\n fontWeight: '400',\n fontSize: 13,\n lineHeight: 18,\n },\n itemTitleContainer: {\n flexDirection: 'column',\n justifyContent: 'space-between',\n paddingHorizontal: 15,\n position: 'absolute',\n bottom: 20,\n },\n itemTextSpan: {\n color: colors.white,\n fontWeight: '400',\n fontSize: 14,\n textTransform: 'uppercase',\n },\n itemTextTitleIndex: {\n color: colors.accentB400,\n fontWeight: '400',\n fontSize: 20,\n lineHeight: 26,\n paddingRight: 10,\n },\n itemTextStepTitle: {\n color: colors.primaryBlack,\n fontWeight: '600',\n fontSize: 18,\n lineHeight: 26,\n },\n itemTextStepSubDescription: {\n fontWeight: '700',\n fontSize: 10,\n lineHeight: 15,\n letterSpacing: 0.5,\n paddingTop: 5,\n textTransform: 'uppercase',\n },\n itemTextTitle: {\n color: colors.white,\n fontWeight: '400',\n fontSize: 26,\n },\n itemTextDescription: {\n color: colors.primaryBlack,\n fontWeight: '400',\n fontSize: 14,\n lineHeight: 20,\n paddingBottom: 20,\n },\n itemText: {\n color: colors.primaryBlack,\n fontWeight: 'bold',\n fontSize: 12,\n letterSpacing: 0.05,\n paddingBottom: 5,\n textTransform: 'uppercase',\n },\n itemTextStepDescription: {\n color: colors.primaryBlack,\n fontWeight: 'bold',\n fontSize: 12,\n letterSpacing: 0.05,\n paddingBottom: 5,\n },\n itemTextProduct: {\n color: colors.primaryBlack,\n fontSize: 11,\n fontWeight: '600',\n textTransform: 'uppercase',\n letterSpacing: 0.05,\n },\n itemTextSteps: {\n color: colors.primaryBlack,\n fontWeight: 'bold',\n textTransform: 'uppercase',\n },\n textLumiSpaTreatmentContainer: {\n marginTop: 10,\n padding: 10,\n textAlign: 'center',\n borderStyle: 'solid',\n borderWidth: 1,\n borderColor: colors.primaryBlack,\n },\n textLumiSpaTreatment: {\n textAlign: 'center',\n fontSize: 14,\n fontWeight: '600',\n lineHeight: 16,\n letterSpacing: 0.05,\n },\n});\nexport default RoutineDetails;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SACEC,YAAY,EACZC,IAAI,EACJC,UAAU,EACVC,UAAU,EACVC,IAAI,EACJC,KAAK,EACLC,eAAe,EACfC,SAAS,QACJ,cAAc;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IACpBC,WAAW,EAAE,CAAC;IACdF,WAAW,EAAE1F,MAAM,CAACkG;EACtB,CAAC;EACD7C,oBAAoB,EAAE;IACpBgD,SAAS,EAAE,QAAQ;IACnBlC,QAAQ,EAAE,EAAE;IACZD,UAAU,EAAE,KAAK;IACjB2B,UAAU,EAAE,EAAE;IACdM,aAAa,EAAE;EACjB;AACF,CAAC,CAAC;AACF,eAAejG,cAAc"}
@@ -0,0 +1,11 @@
1
+ import { Platform } from 'react-native';
2
+ export function accessibility(id) {
3
+ return Platform.OS === 'android' ? {
4
+ accessible: true,
5
+ accessibilityLabel: id
6
+ } : {
7
+ accessible: false,
8
+ testID: id
9
+ };
10
+ }
11
+ //# sourceMappingURL=Accessibility.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Platform","accessibility","id","OS","accessible","accessibilityLabel","testID"],"sources":["Accessibility.tsx"],"sourcesContent":["import { Platform } from 'react-native';\n\nexport function accessibility(id?: string) {\n return Platform.OS === 'android'\n ? { accessible: true, accessibilityLabel: id }\n : { accessible: false, testID: id };\n}\n"],"mappings":"AAAA,SAASA,QAAQ,QAAQ,cAAc;AAEvC,OAAO,SAASC,aAAa,CAACC,EAAW,EAAE;EACzC,OAAOF,QAAQ,CAACG,EAAE,KAAK,SAAS,GAC5B;IAAEC,UAAU,EAAE,IAAI;IAAEC,kBAAkB,EAAEH;EAAG,CAAC,GAC5C;IAAEE,UAAU,EAAE,KAAK;IAAEE,MAAM,EAAEJ;EAAG,CAAC;AACvC"}