BufferLine.tsx (499B)
1 import * as React from 'react'; 2 import { ParseShape } from 'react-native-parsed-text'; 3 4 import Default from './themes/Default'; 5 6 interface Props { 7 line: WeechatLine; 8 onLongPress: (line: WeechatLine) => void; 9 parseArgs: ParseShape[]; 10 } 11 12 export default class BufferLine extends React.PureComponent<Props> { 13 render(): JSX.Element { 14 const { line, onLongPress, parseArgs } = this.props; 15 16 return ( 17 <Default line={line} onLongPress={onLongPress} parseArgs={parseArgs} /> 18 ); 19 } 20 }