-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCalButton.js
33 lines (27 loc) · 837 Bytes
/
CalButton.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
import React from 'react';
import {StyleSheet, Text,Button, View, TouchableOpacity} from 'react-native';
const styles = StyleSheet.create({
containerStyle:{
padding: 7
},
butStyle:{
alignItems:'center',
justifyContent: 'center',
//padding: 10,
width: 76,
height: 76,
borderRadius: 38,
},
textStyle: {
fontSize: 30,
color: '#000000'
}
});
const CalButton = props => (
<View style = {styles.containerStyle} >
<TouchableOpacity onPress = {props.onPress} style ={[styles.butStyle, props.style]} >
<Text style = {[styles.textStyle, props.textStyle]}> {props.title} </Text>
</TouchableOpacity>
</View>
)
export default CalButton;