utu-platform-messages

0.0.2 • Public • Published

Platform Messages

Renders mocked version of messaging platforms messages.

Installation

  yarn add utu-platform-messages

Usage

import PlatformMessage from 'platform-messages';

const Render = ({ message }) => (
  <PlatformMessage platform="sms" message={message} />
)

const message = {
  message: "", // text from the message
  botMessage: false, // was this message from a bot or from the user
  rawMessage: {
    /* platform raw message */
  }
};

Testing

$ yarn run test:watch

Storybook

$ yarn run storybook

/utu-platform-messages/

    Package Sidebar

    Install

    npm i utu-platform-messages

    Weekly Downloads

    0

    Version

    0.0.2

    License

    ISC

    Last publish

    Collaborators

    • patrickml