1import React from 'react'; 2import {StyleSheet, Text, View} from 'react-native'; 3import rpx from '@/utils/rpx'; 4import {Button} from 'react-native-paper'; 5import useColors from '@/hooks/useColors'; 6import ThemeText from './themeText'; 7 8interface IButtonProps { 9 children: string; 10 onPress?: () => void; 11} 12export default function (props: IButtonProps) { 13 const {children, onPress} = props; 14 return ( 15 <Button {...props} onPress={onPress}> 16 <ThemeText>{children}</ThemeText> 17 </Button> 18 ); 19} 20 21const style = StyleSheet.create({ 22 wrapper: { 23 width: rpx(750), 24 }, 25}); 26