-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathButton.js
36 lines (33 loc) · 852 Bytes
/
Button.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
import React from 'react';
import { Text, TouchableOpacity } from 'react-native';
const Button = (props) => {
const { buttonStyle, textStyle } = styles;
const { onPress, label } = props
return (
<TouchableOpacity onPress={onPress} style={buttonStyle}>
<Text style={textStyle}>
{label+"123"}
</Text>
</TouchableOpacity>
);
};
const styles = {
textStyle: {
alignSelf: 'center',
color: '#fff',
fontSize: 16,
fontWeight: '600',
},
buttonStyle: {
height: 45,
alignSelf: 'stretch',
justifyContent: 'center',
backgroundColor: '#38ba7d',
borderBottomWidth: 6,
borderBottomColor: '#1e6343',
borderWidth: 1,
marginLeft: 15,
marginRight: 15
}
};
export default Button;