react-native-skia-responsive-text
Version:
A library providing a wrapper for the React Native Skia Text component, offering features like user-friendly text alignment, efficient multiline text management, and straightforward text truncation.
17 lines • 877 B
TypeScript
/// <reference types="react" />
import { TextProps } from '@shopify/react-native-skia';
import { SharedValue } from 'react-native-reanimated';
import { AnimationSettings } from '../types';
type TextLineProps = Omit<TextProps, 'x' | 'y'> & {
animationProgress?: SharedValue<number>;
animationSettings?: AnimationSettings;
fontSize: number;
horizontalAlignmentOffsets: SharedValue<Array<number>>;
index: number;
lineHeight: SharedValue<number>;
verticalAlignmentOffset: SharedValue<number>;
};
declare function TextLine({ animationProgress, animationSettings, fontSize, horizontalAlignmentOffsets, index, lineHeight, verticalAlignmentOffset, ...rest }: TextLineProps): import("react/jsx-runtime").JSX.Element;
declare const _default: import("react").MemoExoticComponent<typeof TextLine>;
export default _default;
//# sourceMappingURL=TextLine.d.ts.map