diff --git a/src/components/Button.js b/src/components/Button.js new file mode 100644 index 0000000..24a8572 --- /dev/null +++ b/src/components/Button.js @@ -0,0 +1,35 @@ +import React from 'react'; +import { Text, TouchableOpacity } from 'react-native'; + +const Button = ({ onPress, children }) => { + const { textStyle, buttonStyle } = styles; + return ( + + {children} + + ); +}; + +const styles = { + textStyle: { + color: '#007aff', + alignSelf: 'center', + fontSize: 16, + fontWeight: '600', + paddingTop: 10, + paddingBottom: 10 + }, + buttonStyle: { + flex: 1, + alignSelf: 'stretch', + backgroundColor: '#fff', + marginLeft: 5, + marginRight: 5, + marginBottom: 3, + borderWidth: 1, + borderRadius: 5, + borderColor: '#007aff' + } +}; + +export default Button;