-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp-old.js
44 lines (38 loc) · 1.3 KB
/
App-old.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
import { StatusBar } from 'expo-status-bar';
import { StyleSheet, Text, View } from 'react-native';
import { Image } from 'expo-image';
import { LinearGradient } from 'expo-linear-gradient';
export default function App() {
return (
<View style={styles.container}>
<LinearGradient
colors={['#232526', '#66686a']}
style={{ position: 'absolute', left: 0, right: 0, top: 0, bottom: 0 }}
/>
<View style={{ position: 'absolute', bottom: 50, left: 0, right: 0, alignItems: 'center' }}>
<Image
style={{ width: 100, height: 100 }}
contentFit="contain"
source="https://raw.githubusercontent.com/expo/styleguide/main/common/logos/word-mark-logo.svg"
/>
</View>
<Image
style={{ width: 200, height: 200 }}
contentFit="contain"
source="https://d33wubrfki0l68.cloudfront.net/554c3b0e09cf167f0281fda839a5433f2040b349/ecfc9/img/header_logo.svg"
/>
<Text style={{ fontSize: 22, marginTop: 15, color: '#fff' }}>
New Architecture: <Text style={{ fontWeight: 'bold' }}>Enabled</Text>
</Text>
< StatusBar style="auto" />
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
},
});