weechatRN

Weechat relay client for iOS using websockets https://github.com/mhoran/weechatRN
git clone http://git.hanabi.in/repos/weechatRN.git
Log | Files | Refs | README | LICENSE

BufferGate.tsx (478B)


      1 import * as React from 'react';
      2 import { View } from 'react-native';
      3 import BufferContainer, { styles } from './BufferContainer';
      4 
      5 type Props = {
      6   bufferId: string | null;
      7   showTopic: boolean;
      8   sendMessage: (message: string) => void;
      9 };
     10 
     11 const BufferGate = (props: Props): JSX.Element => {
     12   if (props.bufferId) {
     13     return <BufferContainer {...props} bufferId={props.bufferId} />;
     14   } else {
     15     return <View style={styles.container} />;
     16   }
     17 };
     18 
     19 export default BufferGate;