Files
drip/components/button.js
T
Sofiya Tepikin 7e807dba7f Introducing detox
2019-07-21 16:17:16 +02:00

22 lines
510 B
JavaScript

import React from 'react'
import { TouchableOpacity } from 'react-native'
import AppText from './app-text'
import styles from '../styles'
export default function Button(props) {
return (
<TouchableOpacity
onPress={props.onPress}
style={[
styles.button,
props.style,
{backgroundColor: props.backgroundColor}
]}
testID={props.testID}
>
<AppText style={styles.homeButtonText}>
{props.children}
</AppText>
</TouchableOpacity>
)
}