//@ts-nocheck import React from 'react' import { ActivityIndicator, Text, TouchableOpacity, View } from 'react-native' import R from '../../res' import s from './styles' import { IButtonProps } from './types' const Button = React.forwardRef( ( { text = 'Press me', onPress, isUpperCase, isDisabled, isLoading, styles, }: IButtonProps, ref ) => { const formatText = isUpperCase ? text.toUpperCase() : text return ( <> {isLoading ? ( ) : ( {formatText} )} ) } ) export default Button