react-native-elearn-ui 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/module/screens/QbankScreen.js +10 -10
- package/lib/module/screens/QbankScreen.js.map +1 -1
- package/lib/module/screens/ResultScreen.js +407 -85
- package/lib/module/screens/ResultScreen.js.map +1 -1
- package/lib/typescript/src/screens/ResultScreen.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/screens/QbankScreen.tsx +10 -10
- package/src/screens/ResultScreen.tsx +382 -76
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import { View, ScrollView, StyleSheet, TouchableOpacity, SafeAreaView, StatusBar } from 'react-native';
|
|
3
|
+
import React, { useState } from 'react';
|
|
4
|
+
import { View, ScrollView, StyleSheet, TouchableOpacity, SafeAreaView, StatusBar, Image } from 'react-native';
|
|
5
5
|
import { useElearnConfig } from "../context/ElearnConfigContext.js";
|
|
6
6
|
import { useTheme } from "../context/ThemeContext.js";
|
|
7
7
|
import { Typography, Card, CircularProgress, Button, Icon } from "../components/index.js";
|
|
@@ -10,13 +10,16 @@ export const ResultScreen = ({
|
|
|
10
10
|
results,
|
|
11
11
|
questions,
|
|
12
12
|
onClose,
|
|
13
|
-
onReviewAnswers,
|
|
14
13
|
hideHeader = false
|
|
15
14
|
}) => {
|
|
16
15
|
const {
|
|
17
16
|
getString
|
|
18
17
|
} = useElearnConfig();
|
|
19
18
|
const theme = useTheme();
|
|
19
|
+
|
|
20
|
+
// Selected question index for individual review
|
|
21
|
+
const [selectedReviewIndex, setSelectedReviewIndex] = useState(null);
|
|
22
|
+
const optionPrefixes = ['A', 'B', 'C', 'D', 'E'];
|
|
20
23
|
const formatTime = totalSeconds => {
|
|
21
24
|
const mins = Math.floor(totalSeconds / 60);
|
|
22
25
|
const secs = totalSeconds % 60;
|
|
@@ -25,6 +28,204 @@ export const ResultScreen = ({
|
|
|
25
28
|
}
|
|
26
29
|
return `${secs}s`;
|
|
27
30
|
};
|
|
31
|
+
const handlePrevReview = () => {
|
|
32
|
+
if (selectedReviewIndex !== null && selectedReviewIndex > 0) {
|
|
33
|
+
setSelectedReviewIndex(selectedReviewIndex - 1);
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
const handleNextReview = () => {
|
|
37
|
+
if (selectedReviewIndex !== null && selectedReviewIndex < questions.length - 1) {
|
|
38
|
+
setSelectedReviewIndex(selectedReviewIndex + 1);
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
// --- Sub-View: Individual Question Detail Review ---
|
|
43
|
+
if (selectedReviewIndex !== null) {
|
|
44
|
+
const currentReviewQuestion = questions[selectedReviewIndex];
|
|
45
|
+
const userAnswerIdx = results.userAnswers[currentReviewQuestion.id];
|
|
46
|
+
// Removed unused isCorrect variable
|
|
47
|
+
|
|
48
|
+
return /*#__PURE__*/_jsxs(SafeAreaView, {
|
|
49
|
+
style: [styles.safeArea, {
|
|
50
|
+
backgroundColor: theme.background
|
|
51
|
+
}],
|
|
52
|
+
children: [/*#__PURE__*/_jsx(StatusBar, {
|
|
53
|
+
barStyle: "dark-content"
|
|
54
|
+
}), !hideHeader && /*#__PURE__*/_jsxs(View, {
|
|
55
|
+
style: styles.header,
|
|
56
|
+
children: [/*#__PURE__*/_jsx(TouchableOpacity, {
|
|
57
|
+
onPress: () => setSelectedReviewIndex(null),
|
|
58
|
+
style: styles.backButton,
|
|
59
|
+
children: /*#__PURE__*/_jsx(Icon, {
|
|
60
|
+
name: "arrow-left",
|
|
61
|
+
size: 20,
|
|
62
|
+
color: theme.textPrimary
|
|
63
|
+
})
|
|
64
|
+
}), /*#__PURE__*/_jsx(Typography, {
|
|
65
|
+
variant: "h2",
|
|
66
|
+
bold: true,
|
|
67
|
+
style: styles.headerTitle,
|
|
68
|
+
children: "QBank Analysis"
|
|
69
|
+
}), /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
70
|
+
onPress: onClose,
|
|
71
|
+
style: styles.closeButton,
|
|
72
|
+
children: /*#__PURE__*/_jsx(Icon, {
|
|
73
|
+
name: "x-circle",
|
|
74
|
+
size: 24,
|
|
75
|
+
color: theme.textSecondary
|
|
76
|
+
})
|
|
77
|
+
})]
|
|
78
|
+
}), /*#__PURE__*/_jsxs(ScrollView, {
|
|
79
|
+
contentContainerStyle: styles.scrollContent,
|
|
80
|
+
showsVerticalScrollIndicator: false,
|
|
81
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
82
|
+
style: styles.metaRow,
|
|
83
|
+
children: [/*#__PURE__*/_jsxs(Typography, {
|
|
84
|
+
variant: "caption",
|
|
85
|
+
bold: true,
|
|
86
|
+
color: theme.textSecondary,
|
|
87
|
+
style: styles.questionNumLabel,
|
|
88
|
+
children: ["QUESTION ", selectedReviewIndex + 1, "/", questions.length]
|
|
89
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
90
|
+
style: styles.metaActions,
|
|
91
|
+
children: /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
92
|
+
style: styles.metaActionBtn,
|
|
93
|
+
children: /*#__PURE__*/_jsx(Icon, {
|
|
94
|
+
name: "bookmark",
|
|
95
|
+
size: 18,
|
|
96
|
+
color: theme.textSecondary
|
|
97
|
+
})
|
|
98
|
+
})
|
|
99
|
+
})]
|
|
100
|
+
}), /*#__PURE__*/_jsx(Typography, {
|
|
101
|
+
variant: "h2",
|
|
102
|
+
bold: true,
|
|
103
|
+
color: theme.textPrimary,
|
|
104
|
+
style: styles.questionText,
|
|
105
|
+
children: currentReviewQuestion.text
|
|
106
|
+
}), currentReviewQuestion.imageUrl && /*#__PURE__*/_jsx(Image, {
|
|
107
|
+
source: {
|
|
108
|
+
uri: currentReviewQuestion.imageUrl
|
|
109
|
+
},
|
|
110
|
+
style: styles.questionImage,
|
|
111
|
+
resizeMode: "cover"
|
|
112
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
113
|
+
style: styles.optionsList,
|
|
114
|
+
children: currentReviewQuestion.options.map((option, idx) => {
|
|
115
|
+
const isUserSelection = userAnswerIdx === idx;
|
|
116
|
+
const isCorrectAnswer = idx === currentReviewQuestion.correctOptionIndex;
|
|
117
|
+
let optionBg = '#FFFFFF';
|
|
118
|
+
let optionBorder = theme.border;
|
|
119
|
+
let labelColor = theme.textPrimary;
|
|
120
|
+
let prefixColor = theme.textSecondary;
|
|
121
|
+
let statText = '';
|
|
122
|
+
if (isCorrectAnswer) {
|
|
123
|
+
optionBg = '#E6F4F1'; // Tinted green bg
|
|
124
|
+
optionBorder = '#10B981'; // Green border
|
|
125
|
+
labelColor = '#065F46';
|
|
126
|
+
prefixColor = '#065F46';
|
|
127
|
+
statText = isUserSelection ? 'Your Correct Answer' : 'Correct Answer';
|
|
128
|
+
} else if (isUserSelection) {
|
|
129
|
+
optionBg = '#FEF2F2'; // Tinted red bg
|
|
130
|
+
optionBorder = '#EF4444'; // Red border
|
|
131
|
+
labelColor = '#991B1B';
|
|
132
|
+
prefixColor = '#991B1B';
|
|
133
|
+
statText = 'Your Incorrect Answer';
|
|
134
|
+
}
|
|
135
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
136
|
+
style: [styles.optionCard, {
|
|
137
|
+
backgroundColor: optionBg,
|
|
138
|
+
borderColor: optionBorder
|
|
139
|
+
}],
|
|
140
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
141
|
+
style: styles.optionRow,
|
|
142
|
+
children: [/*#__PURE__*/_jsx(Typography, {
|
|
143
|
+
variant: "body",
|
|
144
|
+
bold: true,
|
|
145
|
+
color: prefixColor,
|
|
146
|
+
style: styles.optionPrefix,
|
|
147
|
+
children: optionPrefixes[idx] || idx + 1
|
|
148
|
+
}), /*#__PURE__*/_jsx(Typography, {
|
|
149
|
+
variant: "body",
|
|
150
|
+
color: labelColor,
|
|
151
|
+
style: styles.optionText,
|
|
152
|
+
children: option
|
|
153
|
+
})]
|
|
154
|
+
}), statText !== '' && /*#__PURE__*/_jsx(View, {
|
|
155
|
+
style: styles.statBadgeRow,
|
|
156
|
+
children: /*#__PURE__*/_jsx(Typography, {
|
|
157
|
+
variant: "caption",
|
|
158
|
+
bold: true,
|
|
159
|
+
color: isCorrectAnswer ? '#10B981' : '#EF4444',
|
|
160
|
+
children: statText
|
|
161
|
+
})
|
|
162
|
+
})]
|
|
163
|
+
}, idx);
|
|
164
|
+
})
|
|
165
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
166
|
+
style: styles.explanationSection,
|
|
167
|
+
children: [/*#__PURE__*/_jsx(Typography, {
|
|
168
|
+
variant: "h2",
|
|
169
|
+
bold: true,
|
|
170
|
+
color: theme.textPrimary,
|
|
171
|
+
style: styles.explanationTitle,
|
|
172
|
+
children: "Explanation"
|
|
173
|
+
}), /*#__PURE__*/_jsx(Typography, {
|
|
174
|
+
variant: "body",
|
|
175
|
+
color: theme.textSecondary,
|
|
176
|
+
style: styles.explanationBody,
|
|
177
|
+
children: currentReviewQuestion.explanation
|
|
178
|
+
}), /*#__PURE__*/_jsx(Typography, {
|
|
179
|
+
variant: "h3",
|
|
180
|
+
bold: true,
|
|
181
|
+
color: theme.textSecondary,
|
|
182
|
+
style: styles.rxdxId,
|
|
183
|
+
children: "RXDX ID: R23082"
|
|
184
|
+
})]
|
|
185
|
+
})]
|
|
186
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
187
|
+
style: styles.footerRow,
|
|
188
|
+
children: [/*#__PURE__*/_jsx(TouchableOpacity, {
|
|
189
|
+
onPress: handlePrevReview,
|
|
190
|
+
disabled: selectedReviewIndex === 0,
|
|
191
|
+
style: [styles.footerActionBtn, selectedReviewIndex === 0 && {
|
|
192
|
+
opacity: 0.4
|
|
193
|
+
}],
|
|
194
|
+
children: /*#__PURE__*/_jsx(Typography, {
|
|
195
|
+
variant: "body",
|
|
196
|
+
bold: true,
|
|
197
|
+
color: theme.textPrimary,
|
|
198
|
+
children: "Previous"
|
|
199
|
+
})
|
|
200
|
+
}), /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
201
|
+
onPress: () => setSelectedReviewIndex(null),
|
|
202
|
+
style: styles.backToListBtn,
|
|
203
|
+
children: /*#__PURE__*/_jsx(Typography, {
|
|
204
|
+
variant: "body",
|
|
205
|
+
bold: true,
|
|
206
|
+
color: theme.primary,
|
|
207
|
+
children: "Back to Summary"
|
|
208
|
+
})
|
|
209
|
+
}), /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
210
|
+
onPress: handleNextReview,
|
|
211
|
+
disabled: selectedReviewIndex === questions.length - 1,
|
|
212
|
+
style: [styles.nextActionBtn, {
|
|
213
|
+
backgroundColor: theme.primary
|
|
214
|
+
}, selectedReviewIndex === questions.length - 1 && {
|
|
215
|
+
opacity: 0.4
|
|
216
|
+
}],
|
|
217
|
+
children: /*#__PURE__*/_jsx(Typography, {
|
|
218
|
+
variant: "body",
|
|
219
|
+
bold: true,
|
|
220
|
+
color: "#FFFFFF",
|
|
221
|
+
children: "Next"
|
|
222
|
+
})
|
|
223
|
+
})]
|
|
224
|
+
})]
|
|
225
|
+
});
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
// --- Main View: Quiz Performance Scorecard & Summary List ---
|
|
28
229
|
return /*#__PURE__*/_jsxs(SafeAreaView, {
|
|
29
230
|
style: [styles.safeArea, {
|
|
30
231
|
backgroundColor: theme.background
|
|
@@ -38,7 +239,8 @@ export const ResultScreen = ({
|
|
|
38
239
|
}), /*#__PURE__*/_jsx(Typography, {
|
|
39
240
|
variant: "h2",
|
|
40
241
|
bold: true,
|
|
41
|
-
|
|
242
|
+
style: styles.headerTitleMain,
|
|
243
|
+
children: "QBank Analysis"
|
|
42
244
|
}), /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
43
245
|
onPress: onClose,
|
|
44
246
|
style: styles.closeButton,
|
|
@@ -62,12 +264,12 @@ export const ResultScreen = ({
|
|
|
62
264
|
variant: "h1",
|
|
63
265
|
bold: true,
|
|
64
266
|
color: theme.textPrimary,
|
|
65
|
-
children: getString('scorecardTitle')
|
|
267
|
+
children: getString('scorecardTitle') || 'Quiz Analysis'
|
|
66
268
|
}), /*#__PURE__*/_jsx(Typography, {
|
|
67
269
|
variant: "body",
|
|
68
270
|
color: theme.textSecondary,
|
|
69
271
|
style: styles.summarySubtitle,
|
|
70
|
-
children: getString('resultsSubtitle')
|
|
272
|
+
children: getString('resultsSubtitle') || 'Here is your QBank performance summary!'
|
|
71
273
|
}), /*#__PURE__*/_jsxs(View, {
|
|
72
274
|
style: styles.statsContainer,
|
|
73
275
|
children: [/*#__PURE__*/_jsxs(View, {
|
|
@@ -75,11 +277,12 @@ export const ResultScreen = ({
|
|
|
75
277
|
children: [/*#__PURE__*/_jsx(Typography, {
|
|
76
278
|
variant: "caption",
|
|
77
279
|
color: theme.textSecondary,
|
|
78
|
-
children: getString('correctAnswersCountLabel')
|
|
280
|
+
children: getString('correctAnswersCountLabel') || 'Correct Answers'
|
|
79
281
|
}), /*#__PURE__*/_jsxs(Typography, {
|
|
80
282
|
variant: "h2",
|
|
81
283
|
bold: true,
|
|
82
284
|
color: theme.success,
|
|
285
|
+
style: styles.statValue,
|
|
83
286
|
children: [results.correctCount, " / ", results.totalQuestions]
|
|
84
287
|
})]
|
|
85
288
|
}), /*#__PURE__*/_jsxs(View, {
|
|
@@ -87,11 +290,12 @@ export const ResultScreen = ({
|
|
|
87
290
|
children: [/*#__PURE__*/_jsx(Typography, {
|
|
88
291
|
variant: "caption",
|
|
89
292
|
color: theme.textSecondary,
|
|
90
|
-
children: getString('timeSpentLabel')
|
|
293
|
+
children: getString('timeSpentLabel') || 'Time Spent'
|
|
91
294
|
}), /*#__PURE__*/_jsx(Typography, {
|
|
92
295
|
variant: "h2",
|
|
93
296
|
bold: true,
|
|
94
297
|
color: theme.textPrimary,
|
|
298
|
+
style: styles.statValue,
|
|
95
299
|
children: formatTime(results.timeSpentSeconds)
|
|
96
300
|
})]
|
|
97
301
|
})]
|
|
@@ -111,7 +315,7 @@ export const ResultScreen = ({
|
|
|
111
315
|
variant: "caption",
|
|
112
316
|
color: theme.textSecondary,
|
|
113
317
|
style: styles.accuracyText,
|
|
114
|
-
children: getString('accuracyLabel')
|
|
318
|
+
children: getString('accuracyLabel') || 'Accuracy'
|
|
115
319
|
})]
|
|
116
320
|
})]
|
|
117
321
|
})
|
|
@@ -127,83 +331,81 @@ export const ResultScreen = ({
|
|
|
127
331
|
children: questions.map((question, idx) => {
|
|
128
332
|
const userAnswerIdx = results.userAnswers[question.id];
|
|
129
333
|
const isCorrect = userAnswerIdx === question.correctOptionIndex;
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
style: styles.
|
|
136
|
-
children: [/*#__PURE__*/
|
|
137
|
-
style:
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
334
|
+
return /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
335
|
+
activeOpacity: 0.8,
|
|
336
|
+
onPress: () => setSelectedReviewIndex(idx),
|
|
337
|
+
children: /*#__PURE__*/_jsxs(Card, {
|
|
338
|
+
bordered: true,
|
|
339
|
+
style: styles.reviewCard,
|
|
340
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
341
|
+
style: styles.reviewCardHeader,
|
|
342
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
343
|
+
style: [styles.questionNumBadge, {
|
|
344
|
+
backgroundColor: theme.secondary
|
|
345
|
+
}],
|
|
346
|
+
children: /*#__PURE__*/_jsxs(Typography, {
|
|
347
|
+
variant: "caption",
|
|
348
|
+
bold: true,
|
|
349
|
+
color: theme.primary,
|
|
350
|
+
children: ["Q", idx + 1]
|
|
351
|
+
})
|
|
352
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
353
|
+
style: styles.statusBadge,
|
|
354
|
+
children: [/*#__PURE__*/_jsx(Icon, {
|
|
355
|
+
name: isCorrect ? 'check-circle' : 'x-circle',
|
|
356
|
+
size: 18,
|
|
357
|
+
color: isCorrect ? theme.success : theme.danger
|
|
358
|
+
}), /*#__PURE__*/_jsx(Typography, {
|
|
359
|
+
variant: "caption",
|
|
360
|
+
bold: true,
|
|
361
|
+
color: isCorrect ? theme.success : theme.danger,
|
|
362
|
+
style: styles.statusBadgeText,
|
|
363
|
+
children: isCorrect ? 'Correct' : 'Incorrect'
|
|
364
|
+
})]
|
|
158
365
|
})]
|
|
159
|
-
})
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
children: [/*#__PURE__*/_jsxs(Typography, {
|
|
168
|
-
variant: "caption",
|
|
169
|
-
color: theme.textSecondary,
|
|
170
|
-
children: ["Your answer:", ' ', /*#__PURE__*/_jsx(Typography, {
|
|
366
|
+
}), /*#__PURE__*/_jsx(Typography, {
|
|
367
|
+
variant: "body",
|
|
368
|
+
bold: true,
|
|
369
|
+
style: styles.reviewQuestionText,
|
|
370
|
+
children: question.text
|
|
371
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
372
|
+
style: styles.userSelectionContainer,
|
|
373
|
+
children: [/*#__PURE__*/_jsxs(Typography, {
|
|
171
374
|
variant: "caption",
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
children: ["Correct answer:", ' ', /*#__PURE__*/_jsxs(Typography, {
|
|
375
|
+
color: theme.textSecondary,
|
|
376
|
+
children: ["Your answer:", ' ', /*#__PURE__*/_jsx(Typography, {
|
|
377
|
+
variant: "caption",
|
|
378
|
+
bold: true,
|
|
379
|
+
color: isCorrect ? theme.success : theme.danger,
|
|
380
|
+
children: userAnswerIdx !== undefined ? `Option ${optionPrefixes[userAnswerIdx] || userAnswerIdx + 1}` : 'Skipped'
|
|
381
|
+
})]
|
|
382
|
+
}), !isCorrect && /*#__PURE__*/_jsxs(Typography, {
|
|
181
383
|
variant: "caption",
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
children: ["
|
|
384
|
+
color: theme.textSecondary,
|
|
385
|
+
style: styles.correctAnswerText,
|
|
386
|
+
children: ["Correct answer:", ' ', /*#__PURE__*/_jsxs(Typography, {
|
|
387
|
+
variant: "caption",
|
|
388
|
+
bold: true,
|
|
389
|
+
color: theme.success,
|
|
390
|
+
children: ["Option ", optionPrefixes[question.correctOptionIndex] || question.correctOptionIndex + 1]
|
|
391
|
+
})]
|
|
185
392
|
})]
|
|
186
393
|
})]
|
|
187
|
-
})
|
|
394
|
+
})
|
|
188
395
|
}, question.id);
|
|
189
396
|
})
|
|
190
397
|
})]
|
|
191
|
-
}), /*#__PURE__*/
|
|
398
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
192
399
|
style: [styles.footer, {
|
|
193
400
|
backgroundColor: theme.cardBackground,
|
|
194
401
|
borderTopColor: theme.border
|
|
195
402
|
}],
|
|
196
|
-
children:
|
|
197
|
-
title:
|
|
198
|
-
onPress: onReviewAnswers,
|
|
199
|
-
variant: "outline",
|
|
200
|
-
style: styles.reviewBtn
|
|
201
|
-
}), /*#__PURE__*/_jsx(Button, {
|
|
202
|
-
title: getString('goHomeButton'),
|
|
403
|
+
children: /*#__PURE__*/_jsx(Button, {
|
|
404
|
+
title: "Back to Dashboard",
|
|
203
405
|
onPress: onClose,
|
|
204
406
|
variant: "primary",
|
|
205
407
|
style: styles.homeBtn
|
|
206
|
-
})
|
|
408
|
+
})
|
|
207
409
|
})]
|
|
208
410
|
});
|
|
209
411
|
};
|
|
@@ -215,17 +417,28 @@ const styles = StyleSheet.create({
|
|
|
215
417
|
flexDirection: 'row',
|
|
216
418
|
justifyContent: 'space-between',
|
|
217
419
|
alignItems: 'center',
|
|
218
|
-
paddingHorizontal:
|
|
420
|
+
paddingHorizontal: 16,
|
|
219
421
|
paddingVertical: 12
|
|
220
422
|
},
|
|
221
|
-
|
|
222
|
-
|
|
423
|
+
backButton: {
|
|
424
|
+
padding: 6
|
|
223
425
|
},
|
|
224
426
|
closeButton: {
|
|
225
|
-
padding:
|
|
427
|
+
padding: 6
|
|
428
|
+
},
|
|
429
|
+
headerTitle: {
|
|
430
|
+
fontSize: 18,
|
|
431
|
+
fontWeight: '700'
|
|
432
|
+
},
|
|
433
|
+
headerTitleMain: {
|
|
434
|
+
fontSize: 18,
|
|
435
|
+
fontWeight: '700'
|
|
436
|
+
},
|
|
437
|
+
headerLeftPlaceholder: {
|
|
438
|
+
width: 36
|
|
226
439
|
},
|
|
227
440
|
scrollContent: {
|
|
228
|
-
paddingHorizontal:
|
|
441
|
+
paddingHorizontal: 16,
|
|
229
442
|
paddingTop: 12,
|
|
230
443
|
paddingBottom: 40
|
|
231
444
|
},
|
|
@@ -244,7 +457,8 @@ const styles = StyleSheet.create({
|
|
|
244
457
|
},
|
|
245
458
|
summarySubtitle: {
|
|
246
459
|
marginTop: 4,
|
|
247
|
-
marginBottom: 16
|
|
460
|
+
marginBottom: 16,
|
|
461
|
+
fontSize: 12
|
|
248
462
|
},
|
|
249
463
|
statsContainer: {
|
|
250
464
|
flexDirection: 'row'
|
|
@@ -252,6 +466,10 @@ const styles = StyleSheet.create({
|
|
|
252
466
|
statBox: {
|
|
253
467
|
marginRight: 24
|
|
254
468
|
},
|
|
469
|
+
statValue: {
|
|
470
|
+
fontSize: 18,
|
|
471
|
+
marginTop: 2
|
|
472
|
+
},
|
|
255
473
|
summaryRight: {
|
|
256
474
|
alignItems: 'center',
|
|
257
475
|
justifyContent: 'center'
|
|
@@ -261,7 +479,7 @@ const styles = StyleSheet.create({
|
|
|
261
479
|
fontWeight: '600'
|
|
262
480
|
},
|
|
263
481
|
sectionHeader: {
|
|
264
|
-
marginTop:
|
|
482
|
+
marginTop: 24,
|
|
265
483
|
marginBottom: 12
|
|
266
484
|
},
|
|
267
485
|
reviewList: {
|
|
@@ -269,7 +487,8 @@ const styles = StyleSheet.create({
|
|
|
269
487
|
},
|
|
270
488
|
reviewCard: {
|
|
271
489
|
padding: 16,
|
|
272
|
-
marginBottom: 12
|
|
490
|
+
marginBottom: 12,
|
|
491
|
+
borderRadius: 16
|
|
273
492
|
},
|
|
274
493
|
reviewCardHeader: {
|
|
275
494
|
flexDirection: 'row',
|
|
@@ -290,6 +509,7 @@ const styles = StyleSheet.create({
|
|
|
290
509
|
marginLeft: 6
|
|
291
510
|
},
|
|
292
511
|
reviewQuestionText: {
|
|
512
|
+
fontSize: 14,
|
|
293
513
|
lineHeight: 20,
|
|
294
514
|
marginBottom: 10
|
|
295
515
|
},
|
|
@@ -302,18 +522,120 @@ const styles = StyleSheet.create({
|
|
|
302
522
|
marginTop: 4
|
|
303
523
|
},
|
|
304
524
|
footer: {
|
|
305
|
-
paddingHorizontal:
|
|
525
|
+
paddingHorizontal: 16,
|
|
306
526
|
paddingVertical: 14,
|
|
307
527
|
borderTopWidth: 1,
|
|
528
|
+
backgroundColor: '#FFFFFF'
|
|
529
|
+
},
|
|
530
|
+
homeBtn: {
|
|
531
|
+
width: '100%',
|
|
532
|
+
height: 48,
|
|
533
|
+
justifyContent: 'center',
|
|
534
|
+
alignItems: 'center',
|
|
535
|
+
borderRadius: 24 // Matches "Back to Dashboard" rounded pill button
|
|
536
|
+
},
|
|
537
|
+
// --- Detailed Review Screen Styles ---
|
|
538
|
+
metaRow: {
|
|
308
539
|
flexDirection: 'row',
|
|
309
|
-
justifyContent: 'space-between'
|
|
540
|
+
justifyContent: 'space-between',
|
|
541
|
+
alignItems: 'center',
|
|
542
|
+
marginBottom: 12
|
|
543
|
+
},
|
|
544
|
+
questionNumLabel: {
|
|
545
|
+
fontSize: 12,
|
|
546
|
+
letterSpacing: 0.8
|
|
547
|
+
},
|
|
548
|
+
metaActions: {
|
|
549
|
+
flexDirection: 'row',
|
|
550
|
+
alignItems: 'center'
|
|
551
|
+
},
|
|
552
|
+
metaActionBtn: {
|
|
553
|
+
padding: 6
|
|
554
|
+
},
|
|
555
|
+
questionText: {
|
|
556
|
+
fontSize: 16,
|
|
557
|
+
lineHeight: 22,
|
|
558
|
+
marginBottom: 14
|
|
559
|
+
},
|
|
560
|
+
questionImage: {
|
|
561
|
+
width: '100%',
|
|
562
|
+
height: 180,
|
|
563
|
+
borderRadius: 12,
|
|
564
|
+
marginBottom: 16,
|
|
565
|
+
backgroundColor: '#F8FAFC'
|
|
566
|
+
},
|
|
567
|
+
optionsList: {
|
|
568
|
+
marginBottom: 12
|
|
569
|
+
},
|
|
570
|
+
optionCard: {
|
|
571
|
+
borderWidth: 1,
|
|
572
|
+
borderRadius: 10,
|
|
573
|
+
padding: 12,
|
|
574
|
+
marginBottom: 10
|
|
575
|
+
},
|
|
576
|
+
optionRow: {
|
|
577
|
+
flexDirection: 'row',
|
|
578
|
+
alignItems: 'flex-start'
|
|
579
|
+
},
|
|
580
|
+
optionPrefix: {
|
|
581
|
+
width: 24,
|
|
582
|
+
fontSize: 14,
|
|
583
|
+
fontWeight: '600'
|
|
310
584
|
},
|
|
311
|
-
|
|
585
|
+
optionText: {
|
|
312
586
|
flex: 1,
|
|
313
|
-
|
|
587
|
+
fontSize: 14,
|
|
588
|
+
lineHeight: 18
|
|
314
589
|
},
|
|
315
|
-
|
|
316
|
-
|
|
590
|
+
statBadgeRow: {
|
|
591
|
+
marginTop: 6,
|
|
592
|
+
paddingLeft: 24
|
|
593
|
+
},
|
|
594
|
+
explanationSection: {
|
|
595
|
+
marginTop: 14,
|
|
596
|
+
paddingTop: 14,
|
|
597
|
+
borderTopWidth: 1,
|
|
598
|
+
borderTopColor: '#E2E8F0'
|
|
599
|
+
},
|
|
600
|
+
explanationTitle: {
|
|
601
|
+
fontSize: 15,
|
|
602
|
+
marginBottom: 6
|
|
603
|
+
},
|
|
604
|
+
explanationBody: {
|
|
605
|
+
fontSize: 13,
|
|
606
|
+
lineHeight: 18,
|
|
607
|
+
marginBottom: 16
|
|
608
|
+
},
|
|
609
|
+
rxdxId: {
|
|
610
|
+
fontSize: 12,
|
|
611
|
+
textAlign: 'center',
|
|
612
|
+
marginTop: 12
|
|
613
|
+
},
|
|
614
|
+
footerRow: {
|
|
615
|
+
flexDirection: 'row',
|
|
616
|
+
alignItems: 'center',
|
|
617
|
+
paddingHorizontal: 16,
|
|
618
|
+
paddingVertical: 12,
|
|
619
|
+
backgroundColor: '#FFFFFF',
|
|
620
|
+
borderTopWidth: 1,
|
|
621
|
+
borderTopColor: '#E2E8F0',
|
|
622
|
+
justifyContent: 'space-between'
|
|
623
|
+
},
|
|
624
|
+
footerActionBtn: {
|
|
625
|
+
paddingVertical: 8,
|
|
626
|
+
paddingHorizontal: 12
|
|
627
|
+
},
|
|
628
|
+
backToListBtn: {
|
|
629
|
+
paddingVertical: 8,
|
|
630
|
+
paddingHorizontal: 12
|
|
631
|
+
},
|
|
632
|
+
nextActionBtn: {
|
|
633
|
+
paddingHorizontal: 24,
|
|
634
|
+
paddingVertical: 10,
|
|
635
|
+
borderRadius: 8,
|
|
636
|
+
minWidth: 80,
|
|
637
|
+
justifyContent: 'center',
|
|
638
|
+
alignItems: 'center'
|
|
317
639
|
}
|
|
318
640
|
});
|
|
319
641
|
//# sourceMappingURL=ResultScreen.js.map
|