-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathApp.js
34 lines (31 loc) · 837 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
import React from 'react'
import {StyleSheet, ScrollView} from 'react-native'
import CardImage from './components/CardImage'
export default class App extends React.Component {
render() {
return (
<ScrollView
contentContainerStyle={styles.container}
>
{/* goes here a card component for images */}
<CardImage
dogName={'Milou'}
imageUri={require('./assets/dog.jpg')}
avatarUri={require('./assets/dog.jpg')}
/>
<CardImage
dogName={'Tom'}
imageUri={require('./assets/cat.jpeg')}
avatarUri={require('./assets/cat.jpeg')}
/>
</ScrollView>
);
}
}
const styles = StyleSheet.create({
container: {
backgroundColor: '#fff2',
alignItems: 'center',
justifyContent: 'center',
}
})