-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
36 lines (34 loc) · 782 Bytes
/
App.js
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
35
36
import { StatusBar } from 'expo-status-bar';
import NavBar from './NavBar';
import { StyleSheet, Text, View, Image } from 'react-native';
export default function App() {
return (
<View style={styles.container}>
<StatusBar style="auto" />
<NavBar />
<Text style={[styles.title]}>老師名稱</Text>
<Text style={[styles.name]}>Yoshi Liao</Text>
<Image
source={require('./images/img_yoshi.jpg')}
style={{width:'100%', height:400}}
/>
</View>
);
}
const styles = StyleSheet.create({
container: {
backgroundColor: '#FFF3DA',
height:'100%',
width:'100%'
},
title: {
fontSize:30,
textAlign:'center',
padding:20
},
name: {
fontSize:24,
textAlign:'center',
padding:40
}
});