UNPKG

react-native-gifted-chat

Version:
24 lines 1.15 kB
import React from 'react'; import { StyleProp, ViewStyle, TextStyle } from 'react-native'; import { LinkMatcher, LinkType } from './linkParser'; import { LeftRightStyle, IMessage } from './Models'; export type MessageTextProps<TMessage extends IMessage> = { position?: 'left' | 'right'; currentMessage: TMessage; containerStyle?: LeftRightStyle<ViewStyle>; textStyle?: LeftRightStyle<TextStyle>; linkStyle?: LeftRightStyle<TextStyle>; customTextStyle?: StyleProp<TextStyle>; onPress?: (message: TMessage, url: string, type: LinkType) => void; matchers?: LinkMatcher[]; email?: boolean; phone?: boolean; url?: boolean; hashtag?: boolean; mention?: boolean; hashtagUrl?: string; mentionUrl?: string; stripPrefix?: boolean; }; export declare function MessageText<TMessage extends IMessage>({ currentMessage, position, containerStyle, textStyle, linkStyle: linkStyleProp, customTextStyle, onPress: onPressProp, matchers, email, phone, url, hashtag, mention, hashtagUrl, mentionUrl, stripPrefix, }: MessageTextProps<TMessage>): React.JSX.Element; //# sourceMappingURL=MessageText.d.ts.map