react-native-elearn-ui 0.1.9 → 0.1.11
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/index.js +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/screens/HomeScreen.js +2 -1
- package/lib/module/screens/HomeScreen.js.map +1 -1
- package/lib/module/screens/PearlChaptersScreen.js +359 -0
- package/lib/module/screens/PearlChaptersScreen.js.map +1 -0
- package/lib/module/screens/PearlReaderScreen.js +313 -0
- package/lib/module/screens/PearlReaderScreen.js.map +1 -0
- package/lib/module/screens/PearlsScreen.js +43 -631
- package/lib/module/screens/PearlsScreen.js.map +1 -1
- package/lib/module/screens/QbankScreen.js +2 -1
- package/lib/module/screens/QbankScreen.js.map +1 -1
- package/lib/module/screens/QuestionScreen.js +2 -1
- package/lib/module/screens/QuestionScreen.js.map +1 -1
- package/lib/module/screens/QuizStartScreen.js +2 -1
- package/lib/module/screens/QuizStartScreen.js.map +1 -1
- package/lib/module/screens/ResultScreen.js +2 -1
- package/lib/module/screens/ResultScreen.js.map +1 -1
- package/lib/module/screens/TopicListScreen.js +2 -1
- package/lib/module/screens/TopicListScreen.js.map +1 -1
- package/lib/module/screens/index.js +2 -0
- package/lib/module/screens/index.js.map +1 -1
- package/lib/module/screens/pearlsMockData.js +77 -0
- package/lib/module/screens/pearlsMockData.js.map +1 -0
- package/lib/typescript/src/index.d.ts +1 -1
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/screens/PearlChaptersScreen.d.ts +13 -0
- package/lib/typescript/src/screens/PearlChaptersScreen.d.ts.map +1 -0
- package/lib/typescript/src/screens/PearlReaderScreen.d.ts +14 -0
- package/lib/typescript/src/screens/PearlReaderScreen.d.ts.map +1 -0
- package/lib/typescript/src/screens/PearlsScreen.d.ts +3 -0
- package/lib/typescript/src/screens/PearlsScreen.d.ts.map +1 -1
- package/lib/typescript/src/screens/index.d.ts +2 -0
- package/lib/typescript/src/screens/index.d.ts.map +1 -1
- package/lib/typescript/src/screens/pearlsMockData.d.ts +3 -0
- package/lib/typescript/src/screens/pearlsMockData.d.ts.map +1 -0
- package/lib/typescript/src/types/index.d.ts +15 -0
- package/lib/typescript/src/types/index.d.ts.map +1 -1
- package/package.json +3 -1
- package/src/index.tsx +2 -0
- package/src/screens/HomeScreen.tsx +1 -1
- package/src/screens/PearlChaptersScreen.tsx +330 -0
- package/src/screens/PearlReaderScreen.tsx +306 -0
- package/src/screens/PearlsScreen.tsx +30 -603
- package/src/screens/QbankScreen.tsx +1 -1
- package/src/screens/QuestionScreen.tsx +1 -1
- package/src/screens/QuizStartScreen.tsx +1 -1
- package/src/screens/ResultScreen.tsx +1 -1
- package/src/screens/TopicListScreen.tsx +1 -1
- package/src/screens/index.ts +2 -0
- package/src/screens/pearlsMockData.ts +70 -0
- package/src/types/index.ts +17 -0
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
ScrollView,
|
|
5
5
|
StyleSheet,
|
|
6
6
|
TouchableOpacity,
|
|
7
|
-
SafeAreaView,
|
|
8
7
|
StatusBar,
|
|
9
8
|
Image,
|
|
10
9
|
} from 'react-native';
|
|
10
|
+
import { SafeAreaView } from 'react-native-safe-area-context';
|
|
11
11
|
import type { Question, QuizResults } from '../types';
|
|
12
12
|
import { useElearnConfig } from '../context/ElearnConfigContext';
|
|
13
13
|
import { useTheme } from '../context/ThemeContext';
|
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
View,
|
|
4
4
|
StyleSheet,
|
|
5
5
|
TouchableOpacity,
|
|
6
|
-
SafeAreaView,
|
|
7
6
|
StatusBar,
|
|
8
7
|
} from 'react-native';
|
|
8
|
+
import { SafeAreaView } from 'react-native-safe-area-context';
|
|
9
9
|
import type { Topic, Course, Question } from '../types';
|
|
10
10
|
import { useElearnConfig } from '../context/ElearnConfigContext';
|
|
11
11
|
import { useTheme } from '../context/ThemeContext';
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
ScrollView,
|
|
5
5
|
StyleSheet,
|
|
6
6
|
TouchableOpacity,
|
|
7
|
-
SafeAreaView,
|
|
8
7
|
StatusBar,
|
|
9
8
|
Image,
|
|
10
9
|
} from 'react-native';
|
|
10
|
+
import { SafeAreaView } from 'react-native-safe-area-context';
|
|
11
11
|
import type { QuizResults, Question } from '../types';
|
|
12
12
|
import { useElearnConfig } from '../context/ElearnConfigContext';
|
|
13
13
|
import { useTheme } from '../context/ThemeContext';
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
ScrollView,
|
|
5
5
|
StyleSheet,
|
|
6
6
|
TouchableOpacity,
|
|
7
|
-
SafeAreaView,
|
|
8
7
|
StatusBar,
|
|
9
8
|
} from 'react-native';
|
|
9
|
+
import { SafeAreaView } from 'react-native-safe-area-context';
|
|
10
10
|
import type { Course, Topic } from '../types';
|
|
11
11
|
import { useElearnConfig } from '../context/ElearnConfigContext';
|
|
12
12
|
import { useTheme } from '../context/ThemeContext';
|
package/src/screens/index.ts
CHANGED
|
@@ -5,3 +5,5 @@ export { QuizStartScreen } from './QuizStartScreen';
|
|
|
5
5
|
export { QuestionScreen } from './QuestionScreen';
|
|
6
6
|
export { ResultScreen } from './ResultScreen';
|
|
7
7
|
export { PearlsScreen } from './PearlsScreen';
|
|
8
|
+
export { PearlChaptersScreen } from './PearlChaptersScreen';
|
|
9
|
+
export { PearlReaderScreen } from './PearlReaderScreen';
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import type { PearlTopic } from '../types';
|
|
2
|
+
|
|
3
|
+
export const MOCK_PEARLS_TOPICS: PearlTopic[] = [
|
|
4
|
+
{
|
|
5
|
+
id: 'topic_head_neck',
|
|
6
|
+
title: 'Head and neck',
|
|
7
|
+
sections: {
|
|
8
|
+
'Head and Neck': [
|
|
9
|
+
{
|
|
10
|
+
id: 'hn_c1',
|
|
11
|
+
number: 1,
|
|
12
|
+
title: 'Classify sino-nasal neoplasam. Discuss the newer entities',
|
|
13
|
+
isFree: true,
|
|
14
|
+
bullets: [
|
|
15
|
+
'Benign Neoplasms: Benign sino-nasal tumors are generally slow-growing and less likely to invade surrounding structures. Common benign types include inverted papilloma, oncocytic Schneiderian papilloma, and fungiform papilloma, all of which originate from the Schneiderian mucosa. Inverted papilloma is notable for its local aggressiveness and high recurrence rate, sometimes exhibiting malignant transformation into squamous cell carcinoma.',
|
|
16
|
+
'Malignant Neoplasms: Malignant tumors of the sino-nasal tract are rare but clinically significant due to their aggressive behavior, late presentation, and complex anatomical constraints that limit surgical access. The most common malignant tumor is squamous cell carcinoma, often arising from dysplastic or papillomatous lesions.',
|
|
17
|
+
'Esthesioneuroblastoma: A notable entity originating from the olfactory epithelium and displaying variable degrees of malignancy. Additionally, melanoma, lymphoma, and undifferentiated carcinoma can also occur in the sino-nasal region, often presenting with nasal obstruction, epistaxis, and facial pain.'
|
|
18
|
+
]
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
id: 'hn_c2',
|
|
22
|
+
number: 2,
|
|
23
|
+
title: 'Histologic variants of ameloblastoma',
|
|
24
|
+
isLocked: true,
|
|
25
|
+
bullets: [
|
|
26
|
+
'Ameloblastoma is a benign but locally aggressive odontogenic neoplasm.',
|
|
27
|
+
'Follicular and plexiform are the most common histologic patterns.',
|
|
28
|
+
'Unicystic variants have a better prognosis and lower recurrence rates.'
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
id: 'hn_c3',
|
|
33
|
+
number: 3,
|
|
34
|
+
title: 'Role of brush ctology in diagnosis of oral cancerous and precancerous lessions',
|
|
35
|
+
isLocked: true,
|
|
36
|
+
bullets: [
|
|
37
|
+
'Oral brush cytology is a non-invasive screening aid.',
|
|
38
|
+
'High sensitivity for identifying cellular dysplasias.',
|
|
39
|
+
'Must be followed by scalpel biopsy for definitive diagnosis.'
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
'Eye': [
|
|
44
|
+
{
|
|
45
|
+
id: 'eye_c1',
|
|
46
|
+
number: 1,
|
|
47
|
+
title: 'Classify sino-nasal neoplasam. Discuss the newer entities',
|
|
48
|
+
isLocked: true,
|
|
49
|
+
bullets: []
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
id: 'eye_c2',
|
|
53
|
+
number: 2,
|
|
54
|
+
title: 'Histologic variants of ameloblastoma',
|
|
55
|
+
isLocked: true,
|
|
56
|
+
bullets: []
|
|
57
|
+
}
|
|
58
|
+
]
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
{ id: 'topic_brain_spine', title: 'Brain, Spine and Meninges', sections: {} },
|
|
62
|
+
{ id: 'topic_breast', title: 'Breast Pathology', sections: {} },
|
|
63
|
+
{ id: 'topic_skin', title: 'Skin and Connective Tissue', sections: {} },
|
|
64
|
+
{ id: 'topic_kidney', title: 'Kidney & Urinary Tract', sections: {} },
|
|
65
|
+
{ id: 'topic_gastro', title: 'Gastro-Intestinal System', sections: {} },
|
|
66
|
+
{ id: 'topic_endocrine', title: 'Endocrine Pathology', sections: {} },
|
|
67
|
+
{ id: 'topic_general', title: 'General Pathology', sections: {} },
|
|
68
|
+
{ id: 'topic_male_genital', title: 'Male Genital System', sections: {} },
|
|
69
|
+
{ id: 'topic_thoracic', title: 'Thoracic Pathology', sections: {} }
|
|
70
|
+
];
|
package/src/types/index.ts
CHANGED
|
@@ -189,3 +189,20 @@ export interface HomeScreenParams {
|
|
|
189
189
|
continueLearning?: { title?: string; show?: boolean };
|
|
190
190
|
};
|
|
191
191
|
}
|
|
192
|
+
|
|
193
|
+
export interface PearlChapter {
|
|
194
|
+
id: string;
|
|
195
|
+
number: number;
|
|
196
|
+
title: string;
|
|
197
|
+
isFree?: boolean;
|
|
198
|
+
isLocked?: boolean;
|
|
199
|
+
bullets: string[];
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
export interface PearlTopic {
|
|
203
|
+
id: string;
|
|
204
|
+
title: string;
|
|
205
|
+
sections?: {
|
|
206
|
+
[sectionName: string]: PearlChapter[];
|
|
207
|
+
};
|
|
208
|
+
}
|