-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathApp.js
More file actions
34 lines (31 loc) · 924 Bytes
/
App.js
File metadata and controls
34 lines (31 loc) · 924 Bytes
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 { StyleSheet, View, Image } from 'react-native';
import HelloWorld from './src/components/hello-world'
import SignIn from './src/components/sign-in'
import Event from './src/components/event'
import EventList from './src/components/event-list'
import data from './src/fixtures'
const events = Object.entries(data.events).map(([uid, event]) => ({...event, uid}))
export default class App extends React.Component {
render() {
return (
<View style={styles.container}>
<Image style = {styles.image}
source = {require('./assets/logo.png')}
resizeMode = {Image.resizeMode.contain}/>
<Event event={events[0]}/>
</View>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
},
image: {
width: '100%'
}
});