@naarni/design-system
Version:
Naarni React Native Design System for EV Fleet Apps
16 lines • 563 B
TypeScript
import { ReactNode } from 'react';
import { TextStyle } from 'react-native';
import { textStyle, fontWeight } from '../../theme/typography';
export type TextVariant = keyof typeof textStyle;
export interface TextProps {
variant?: TextVariant;
color?: string;
align?: 'auto' | 'left' | 'right' | 'center' | 'justify';
weight?: keyof typeof fontWeight;
style?: TextStyle;
children: ReactNode;
numberOfLines?: number;
ellipsizeMode?: 'head' | 'middle' | 'tail' | 'clip';
testID?: string;
}
//# sourceMappingURL=interfaces.d.ts.map