UNPKG

@kirz/react-native-toolkit

Version:

Toolkit to speed up React Native development

19 lines 903 B
/// <reference types="react" /> import { StyleProp } from 'react-native'; import type { TextProps as TextPropsBase, TextStyle as TextStyleBase } from 'react-native'; import type { FontFamily, TextVariant } from '../theme/augmented'; import { GradientProps } from '../types'; export type TextStyle = TextStyleBase & { fontFamily?: FontFamily; gradient?: GradientProps | GradientProps[]; }; export type TextProps = Omit<TextPropsBase, 'style'> & { variant?: 'default' | TextVariant; style?: StyleProp<TextStyle>; fontSize?: TextStyle['fontSize']; fontWeight?: TextStyle['fontWeight']; fontFamily?: TextStyle['fontFamily']; color?: TextStyle['color']; }; export declare function Text({ style, color: initialColor, fontSize: initialFontSize, fontWeight: initialFontWeight, fontFamily: initialFontFamily, ...props }: TextProps): JSX.Element; //# sourceMappingURL=Text.d.ts.map