react-native-simi-comps
Version:
Simple Minimal Components for React Native
19 lines (18 loc) • 650 B
TypeScript
/// <reference types="react" />
import { PressableProps } from "react-native";
declare type ButtonTypeOptions = "default" | "primary" | "danger";
export default function TextButton({ text, onPress, type, bgColor, textColor, disabled, flex, margin, marginHorizontal, marginVertical, marginLeft, marginRight, }: {
text: string;
onPress: PressableProps["onPress"];
type?: ButtonTypeOptions;
bgColor?: string;
textColor?: string;
disabled?: boolean;
flex?: boolean;
margin?: number;
marginHorizontal?: number;
marginVertical?: number;
marginLeft?: number;
marginRight?: number;
}): JSX.Element;
export {};