forked from Winz18/Online-Learning-Mobile_app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathModuleEdit.tsx
34 lines (30 loc) · 922 Bytes
/
ModuleEdit.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import React from 'react';
import type {PropsWithChildren} from 'react';
import {ScrollView, StyleSheet, View} from 'react-native';
import {NavigationProp} from '@react-navigation/native';
import ModuleEditHeader from './components/subject-page/header/ModuleEditHeader.tsx';
import ModuleEditContent from './components/subject-page/subject-content/ModuleEditContent.tsx';
type SectionProps = PropsWithChildren<{
navigation: NavigationProp<any, any>;
}>;
function ModuleEdit({navigation}: SectionProps): React.JSX.Element {
const navigateToHome = () => {
navigation.navigate('Home');
};
return (
<View style={styles.container}>
<ScrollView>
<View>
<ModuleEditHeader navigation={navigation} />
<ModuleEditContent />
</View>
</ScrollView>
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
},
});
export default ModuleEdit;