-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
48 lines (41 loc) · 1.14 KB
/
App.js
File metadata and controls
48 lines (41 loc) · 1.14 KB
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
import { StatusBar } from 'expo-status-bar';
import React, { useState, useEffect, useCallback } from 'react';
import { Image, StyleSheet, Text, View, Button, FlatList, Linking } from 'react-native';
import logo from './assets/telephone-mascott.jpg'
import Index from './store/index.js'
export default function App() {
let { showContacts, contacts } = Index();
return (
<View style={styles.container}>
<Image source={logo} style={{ width: 305, height: 159 }} />
<Text>Welcome to my Telephone app!</Text>
<StatusBar style="auto" />
<View style={styles.box1}>
<Button
title="Show Contacts"
onPress={showContacts}
/>
{/* <FlatList
data={contacts}
keyExtractor={({ item }) => item.id}
renderItem={({ item }) => {
return (
<Button
title={item.name}
onPress={() => call(item)}
/>
)
}}
/> */}
</View>
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
},
});