-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathApp.js
More file actions
43 lines (36 loc) · 1008 Bytes
/
App.js
File metadata and controls
43 lines (36 loc) · 1008 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
35
36
37
38
39
40
41
42
43
import { StatusBar } from 'expo-status-bar';
import { StyleSheet, Text, View, Linking, Image,SafeAreaView, Button} from 'react-native';
export default function App() {
return (
<SafeAreaView style={styles.container}>
<Image
style={styles.image}
source={require('./assets/profile.jpg')}
/>
<Text style={{fontSize: 30, marginBottom: 30}}>Zidane Hammouda</Text>
<Text style={{marginBottom: 60}}>Life is good</Text>
<Button
onPress={()=>{ Linking.openURL('https://github.com/zidanehammouda')}}
title="Connect"
color="#841584"
accessibilityLabel="Navigate to github profile"
/>
</SafeAreaView>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#302366',
alignItems: 'center',
justifyContent: 'center',
},
image: {
width: 200,
height: 200,
borderRadius: 100,
overflow: 'hidden',
borderWidth: 4,
margin: 20,
},
});