
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
import React from 'react';
import {TouchableOpacity, Text} from 'react-native';
export default function Button({
title,
onPress,
color,
backgroundColor,
padding,
borderRadius,
marginBottom,
fontSize,
textAlign,
width,
}) {
return (
<TouchableOpacity
style={[
{backgroundColor: backgroundColor},
{padding: padding},
{borderRadius: borderRadius},
{marginBottom: marginBottom},
{width: width},
]}
onPress={onPress}>
<Text
style={[{color: color}, {fontSize, fontSize}, {textAlign: textAlign}]}>
{title}
</Text>
</TouchableOpacity>
);
}