@@ -12,8 +12,7 @@ import { Calendar } from '@uiw/react-native';
1212import Layout , { Container } from ' ../Layout' ;
1313const { Header , Body , Footer } = Layout;
1414
15- class CalendarView extends Component {
16- render () {
15+ function CalendarView () {
1716 const title = ' Calendar' ;
1817 return (
1918 < Container>
@@ -25,7 +24,6 @@ const { Header, Body, Footer } = Layout;
2524 < / Layout>
2625 < / Container>
2726 );
28- }
2927}
3028export default CalendarView
3129```
@@ -39,8 +37,7 @@ import { Calendar } from '@uiw/react-native';
3937import Layout , { Container } from ' ../Layout' ;
4038const { Header , Body , Footer } = Layout;
4139
42- class CalendarView extends Component {
43- render () {
40+ function CalendarView () {
4441 return (
4542 < Container>
4643 < Layout>
@@ -51,7 +48,6 @@ class CalendarView extends Component {
5148 < / Layout>
5249 < / Container>
5350 );
54- }
5551}
5652export default CalendarView
5753
@@ -66,8 +62,7 @@ import { Calendar } from '@uiw/react-native';
6662import Layout , { Container } from ' ../Layout' ;
6763const { Header , Body , Footer } = Layout;
6864
69- class CalendarView extends Component {
70- render () {
65+ function CalendarView () {
7166 const barProps = {
7267 barRightText: " 返回" ,
7368 title : " 日历" ,
@@ -84,7 +79,6 @@ class CalendarView extends Component {
8479 < / Layout>
8580 < / Container>
8681 );
87- }
8882}
8983export default CalendarView
9084```
0 commit comments