UNPKG

react-native-gifted-chat-flashlist

Version:

React Native Gifted Chat with FlashList optimization for better performance

20 lines (17 loc) 559 B
// @flow import { Component } from 'react' import type { IMessage, LeftRightStyle } from './types' import type { TextStyleProp, ViewStyleProp, } from 'react-native/Libraries/StyleSheet/StyleSheet' export type TimeProps<TMessage: IMessage = IMessage> = $ReadOnly<{| position: 'left' | 'right', currentMessage: TMessage, containerStyle?: LeftRightStyle<ViewStyleProp>, timeTextStyle?: LeftRightStyle<TextStyleProp>, timeFormat?: string, |}> export default class Time<TMessage: IMessage = IMessage> extends Component< TimeProps<TMessage>, > {}