xref: /MusicFree/src/components/base/button.tsx (revision 835e729484c893301bf84f32a9f3586d6b19f40d)
1import {ColorKey} from '@/constants/uiConst';
2import React from 'react';
3import {Button} from 'react-native-paper';
4import ThemeText from './themeText';
5
6interface IButtonProps {
7    style?: any;
8    children: string;
9    fontColor?: ColorKey;
10    onPress?: () => void;
11}
12export default function (props: IButtonProps) {
13    const {children, onPress, fontColor} = props;
14    return (
15        <Button {...props} onPress={onPress}>
16            <ThemeText fontColor={fontColor}>{children}</ThemeText>
17        </Button>
18    );
19}
20