1.0.2 • Published 6 months ago

rn-chat-interface v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

rn-chat-interface

A Chat UI for React Native

Demo

DEMO

Installation

yarn add rn-chat-interface

Usage

import * as React from 'react';
import { SafeAreaView } from 'react-native';
import { ChatInterface } from 'rn-chat-interface';

export default function App() {
  const [visible, setVisible] = React.useState(true);

  const closeChat = () => {
    setVisible(false);
  };

  return (
    <SafeAreaView style={{ flex: 1 }}>
      <ChatInterface
        isVisible={visible}
        headerColor="cyan"
        title="Chat"
        onClose={closeChat}
      />
    </SafeAreaView>
  );
}

Props

  1. isVisible - Boolean value determines whether to show or not the component. Default is true.
  2. headerColor - Desired color of the top header.
  3. title - Text displayed in the top header.
  4. onClose - Expects a function that will be called upon pressing "Close".
1.0.2

6 months ago

1.0.1

6 months ago

1.0.0

6 months ago

0.1.6

6 months ago

0.1.5

6 months ago

0.1.4

6 months ago

0.1.3

6 months ago

0.1.2

6 months ago

0.1.1

6 months ago

0.1.0

6 months ago