| 5 | import { useTheme } from './themes'; |
| 6 | |
| 7 | interface ButtonProps extends PressableProps { |
| 8 | backgroundColor?: string; |
| 9 | buttonTextColor?: string; |
| 10 | disabled?: boolean; |
| 11 | testID?: string; |
| 12 | icon?: Pick<IconProps, 'name' | 'type'> & { color: string }; |
| 13 | title?: string; |
| 14 | style?: StyleProp<ViewStyle>; |
| 15 | onPress?: () => void; |
| 16 | showActivityIndicator?: boolean; |
| 17 | } |
| 18 | |
| 19 | export const Button = forwardRef<React.ElementRef<typeof Pressable>, ButtonProps>((props, ref) => { |
| 20 | const { colors } = useTheme(); |
nothing calls this directly
no outgoing calls
no test coverage detected