react-native-btcomp
Version:
for test node package
30 lines (28 loc) • 767 B
JavaScript
import React from 'react';
import { View, Text, TouchableOpacity, StyleSheet } from 'react-native';
const TouchButton = ({ title, onPress }) => {
return (
<TouchableOpacity onPress={onPress}>
<View style={styles.buttonStyle}>
<Text style={styles.textStyle}>{title}</Text>
</View>
</TouchableOpacity>
);
};
const styles = StyleSheet.create({
textStyle: {
fontWeight: 'bold',
color: '#fcffff',
fontSize: 20,
textTransform: "uppercase",
textAlign: 'center'
},
buttonStyle: {
backgroundColor: '#093236',
paddingHorizontal: 10,
paddingVertical: 14,
borderRadius: 10,
margin:10
}
});
export default TouchButton;