1
1
import React , { useEffect , useState } from 'react' ;
2
2
3
- import { StyleSheet , View , Text , TouchableOpacity } from 'react-native' ;
3
+ import { StyleSheet , View , Text , TouchableOpacity , Button } from 'react-native' ;
4
4
import { sendMessage , watchEvents } from 'react-native-wear-connectivity' ;
5
5
import type {
6
6
ReplyCallback ,
@@ -29,8 +29,12 @@ export default function App() {
29
29
30
30
return (
31
31
< View style = { styles . container } >
32
- < Text > count is: { count } </ Text >
33
- < TouchableOpacity onPress = { sendMessageToPhone } style = { styles . button } />
32
+ < View style = { styles . textBackground } >
33
+ < Text style = { styles . count } > The count is { count } </ Text >
34
+ </ View >
35
+ < View style = { styles . buttonContainer } >
36
+ < Button title = "press" color = "#B4B1B3" onPress = { sendMessageToPhone } />
37
+ </ View >
34
38
</ View >
35
39
) ;
36
40
}
@@ -40,18 +44,33 @@ const styles = StyleSheet.create({
40
44
flex : 1 ,
41
45
alignItems : 'center' ,
42
46
justifyContent : 'center' ,
43
- backgroundColor : 'yellow' ,
47
+ backgroundColor : '#FDFDFD' ,
48
+ } ,
49
+ buttonContainer : {
50
+ marginTop : 30 ,
44
51
} ,
45
52
box : {
46
53
width : 60 ,
47
54
height : 60 ,
48
55
marginVertical : 20 ,
49
56
} ,
50
- button : {
51
- marginTop : 50 ,
52
- height : 50 ,
53
- width : 50 ,
54
- backgroundColor : 'red' ,
55
- borderRadius : 50 ,
57
+ count : {
58
+ borderRadius : 3 ,
59
+ padding : 5 ,
60
+ backgroundColor : '#9C9A9D' ,
61
+ textAlign : 'center' ,
62
+ textAlignVertical : 'center' ,
63
+ marginTop : 20 ,
64
+ color : 'white' ,
65
+ fontSize : 20 ,
66
+ fontWeight : '500' ,
67
+ } ,
68
+ plusIcon : {
69
+ flex : 1 ,
70
+ color : 'white' ,
71
+ textAlign : 'center' ,
72
+ textAlignVertical : 'center' ,
73
+ fontSize : 30 ,
74
+ fontWeight : '400' ,
56
75
} ,
57
76
} ) ;
0 commit comments