UNPKG

@geekyhawks/react-native-ui-components

Version:

A lightweight and reusable React Native UI components library with customizable Text, TextInput, FloatingLabelTextInput, Button, and more. Built with TypeScript, fully typed, and designed for easy integration into any React Native project.

42 lines 1.19 kB
/** * Text * * A customizable wrapper around React Native's `Text` component. * Applies default library styles and supports style overrides. * * Author: Geeky Hawks FZE LLC */ import React from "react"; import { TextProps } from "react-native"; import { DefaultTextVariants } from "../../theme"; /** * Props for custom Text component * * - **color**: override theme text color * - **fontFamily**: override theme font * - **variant**: select text variant from default or custom * * All standard React Native `TextProps` can also be applied. */ export interface Props extends TextProps { /** Optional color for the text */ color?: string; /** Optional font family for the text */ fontFamily?: string; /** * Variant * * Choose from default variants ("body" | "h1" | "h2" | "caption") * or provide a custom variant defined in ThemeProvider. */ variant?: DefaultTextVariants | (string & {}); } /** * Text * * A customizable wrapper around React Native's `Text`. * Applies default textVariants, theme fontFamily, and theme color. */ declare const Text: React.FC<Props>; export default Text; //# sourceMappingURL=Text.d.ts.map