Files
App/components/helpers/button.tsx
Violet Caulfield 0a5763f20f styling buttons
2024-10-21 13:41:46 -05:00

22 lines
506 B
TypeScript

import { Button as TamaguiButton } from 'tamagui';
import { styles } from './text';
interface ButtonProps {
children: string;
onPress: () => void;
disabled: boolean;
}
export default function Button(props: ButtonProps): React.JSX.Element {
return (
<TamaguiButton
style={styles.heading}
disabled={props.disabled}
marginVertical={30}
onPress={props.onPress}
>
{ props.children }
</TamaguiButton>
)
}