forked from tjhickey724/cs153aFall21
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ScreenDemo.js
45 lines (39 loc) · 1.09 KB
/
ScreenDemo.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
37
38
39
40
41
42
43
44
45
import React from "react";
import { SafeAreaView, View, Text, StyleSheet} from 'react-native'
import ScreenTemplate from '../containers/ScreenTemplate'
import ThreePartRow from '../containers/ThreePartRow'
import PhotoID from './PhotoID'
const Header = () => {
return (
<ThreePartRow
left = {<Text style={{fontSize:24}}>the left</Text>}
right = {<Text style={{fontSize:24}}> the right </Text>}
content = {<Text style={{fontSize:24}}> this is the content </Text>}
/>
)}
const ScreenDemo = () => {
return (
<ScreenTemplate
header={<Header />}
footer={<Text style={{fontSize:32}}>this is the footer </Text>}
>
<Text style={{fontSize:32}}>Screen Demo</Text>
<PhotoID
name="Tim Hickey"
imageurl="https://www.brandeis.edu/precollege/images/tim-hickey-speaking"
/>
</ScreenTemplate>
)
}
const styles=StyleSheet.create({
centeredElt:{
flex:1,
flexDirection:'row',
justifyContent:'space-around'
},
banner:{
flexDirection:'row',
justifyContent:'space-between'
}
})
export default ScreenDemo