-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
33 lines (29 loc) · 839 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
import { StatusBar } from 'expo-status-bar';
import { StyleSheet, Text, View } from 'react-native';
import CachedImage from 'expo-cached-image'
export default function App() {
return (
<View style={styles.container}>
<Text>Open up App.js to start working on your app!</Text>
<CachedImage
source={{ uri: `https://i.pravatar.cc/1000?u=4b170797-abe3-5465-af48-7694dtr43a8ca` }}
cacheKey={`4b170797-abe3-5465-af48-7694dtr43a8ca`}
resizeMode="contain"
style={{
width: '100%',
height: '100%',
// borderRadius: 10,
}}
/>
<StatusBar style="auto" />
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
},
});