-
Notifications
You must be signed in to change notification settings - Fork 0
/
oldApp.js
72 lines (59 loc) · 1.67 KB
/
oldApp.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
import React, { Component } from 'react';
import { View, StyleSheet, FlatList, Button, Text } from 'react-native';
import styled from 'styled-components/native';
import Contacts from './components/contacts.js';
const StyledView = styled.View`
background-color: papayawhip;
marginTop: 100px;
`;
const StyledText = styled.Text`
color: palevioletred;
fontSize: 100px;
marginTop: 100px;
`;
const RotatedBox = styled.View`
transform: rotate(90deg);
text-shadow-offset: 10px 5px;
font-variant: small-caps;
margin: 5px 7px 2px;
`;
export default class App extends Component {
// constructor(props){
// super(props);
// this.state={
// permissions: false,
// contacts: []
// }
// }
// async componentDidMount(){
// const {status} = await Expo.Permission.askAsync(Expo.Permissions.CONTACTS);
// this.setState({permissions: status});
// }
// showContacts = async() =>{
// const contacts = await Expo.Contacts.getContactsAsync();
// this.setState({contacts: contacts.data});
// };
render() {
return (
<View style={styles.container}>
<StyledView>
<StyledText>Hello World!</StyledText>
</StyledView>
<RotatedBox />
<Contacts/>
{/* <Button title="show contact" onPress={this.showContacts}/> */}
{/* <FlatList data={this.state.contacts} keyExtractor={this.keyExtractor} renderItem={ ( {item} )=> <Text>{item.firstName}</Text>} /> */}
</View>
);
}
}
const styles = StyleSheet.create({
container: {
marginTop: 100,
flex: 1,
backgroundColor: '#FAF1E6',
alignItems: 'center',
justifyContent: 'center',
fontSize: 300
},
});