react-native-simi-comps
Version:
Simple Minimal Components for React Native
23 lines (22 loc) • 765 B
TypeScript
import { ReactNode } from "react";
import { TextProps } from "react-native";
export default function Text({ text, size, bold, centered, italic, spaced, style, color, margin, marginHorizontal, marginVertical, marginTop, marginRight, marginBottom, marginLeft, numberOfLines, selectable, children, }: {
text?: string;
size?: number;
bold?: boolean;
centered?: boolean;
italic?: boolean;
spaced?: boolean;
style?: TextProps["style"];
color?: string;
numberOfLines?: number;
margin?: number;
marginHorizontal?: number;
marginVertical?: number;
marginTop?: number;
marginRight?: number;
marginBottom?: number;
marginLeft?: number;
selectable?: boolean;
children?: ReactNode;
}): JSX.Element | null;