@eslam-elmeniawy/react-native-common-components
Version:
Common `ReactNative` components packed in library for usage in projects.
9 lines • 429 B
TypeScript
/**
* Trims a given string to a specified length, appending '...' if the string exceeds the length.
*
* @param string - The string to be trimmed.
* @param length - The maximum length of the trimmed string, default is 45.
* @returns The trimmed string, with '...' appended if it was truncated.
*/
export declare const trimStringToLength: (string: string, length?: number) => string;
//# sourceMappingURL=StringUtils.d.ts.map