@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.
15 lines • 572 B
TypeScript
/**
* resolveThemeColor Utility
*
* Resolves a theme color key (e.g., "surface", "onSurface", "border")
* to its actual color value from the current theme. If the provided value
* is already a valid color (string, number, OpaqueColorValue), it is returned as-is.
*
* Author: Geeky Hawks FZE LLC
*/
import { ColorValue } from "react-native";
import { ThemeColors } from "../Theme";
export declare const resolveThemeColor: (value: ColorValue | undefined, theme: {
colors: ThemeColors;
}) => ColorValue | undefined;
//# sourceMappingURL=resolveThemeColor.d.ts.map