UNPKG

react-native-ui-lib

Version:

[![SWUbanner](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner-direct.svg)](https://stand-with-ukraine.pp.ua)

10 lines (9 loc) 758 B
export declare function getInitialsTypography(size: number): import("react-native/types").TextStyle | undefined; export declare function hashStringToNumber(str?: string): number; export declare function getAvatarColors(): string[]; export declare function getColorById(id: string, avatarColors?: string[]): string; export declare function getInitials(name?: string, limit?: number): string; export declare function getBackgroundColor(name?: string, avatarColors?: string[], hashFunction?: (name?: string) => number, defaultColor?: string): string | undefined; export declare function isGravatarUrl(url: string): boolean; export declare function isBlankGravatarUrl(url: string): boolean; export declare function patchGravatarUrl(gravatarUrl: string): string;