uva-covid19-testing-kiosk/components/Common.tsx

15 lines
415 B
TypeScript
Raw Permalink Normal View History

import React, {ReactElement} from 'react';
import {Button} from 'react-native-paper';
import {ButtonProps} from '../models/ElementProps';
import {colors, styles} from './Styles';
export const CancelButton = (props: ButtonProps): ReactElement => {
return <Button
icon="cancel"
color={colors.text}
onPress={props.onClicked}
style={styles.btnLg}
labelStyle={styles.btnLg}
>Cancel</Button>;
};