123456789101112131415161718192021222324252627282930 |
- import React from 'react'
- import { StyleSheet, Text } from 'react-native'
- import Touchable from './Touchable'
- export const Button = ({ title, children, style, textStyle, ...rest }) => (
- <Touchable style={[styles.button, style]} {...rest}>
- <Text style={[styles.text, textStyle]}>{title || children}</Text>
- </Touchable>
- )
- const styles = StyleSheet.create({
- button: {
- paddingVertical: 6,
- paddingHorizontal: 12,
- borderRadius: 3,
- backgroundColor: '#fff',
- alignItems: 'center',
- justifyContent: 'center',
- borderColor: '#037aff',
- borderWidth: StyleSheet.hairlineWidth,
- },
- text: {
- fontSize: 16,
- color: '#037aff',
- },
- })
- export default Button
|