UNPKG

@whitemordred/react-native-bootstrap5

Version:

A complete React Native library that replicates Bootstrap 5.3 with 100% feature parity, full theming support, CSS variables, and dark/light mode

17 lines 1.08 kB
/** * Validation utilities for React Native Bootstrap 5 * These helpers ensure props are valid and provide warnings in development */ export declare const warn: (message: string) => void; export declare const error: (message: string) => void; export declare const isNotNullOrUndefined: <T>(value: T | null | undefined) => value is T; export declare const isValidEnum: <T extends string>(value: string, validValues: readonly T[]) => value is T; export declare const isValidColorVariant: (variant: string) => boolean; export declare const isValidButtonVariant: (variant: string) => boolean; export declare const safeString: (value: any, fallback?: string) => string; export declare const safeNumber: (value: any, fallback?: number) => number; export declare const isValidSize: (size: string) => boolean; export declare const safeStyle: (style: any) => any; export declare const validateChildren: (children: any, componentName: string) => boolean; export declare const createErrorHandler: (componentName: string) => (error: Error) => void; //# sourceMappingURL=validation.d.ts.map