not-tinder-ui

not-tinder-ui

  • Docs

›Components

Get started

  • Introduction

Components

  • AddRemoveImage
  • Avatar
  • Card
  • ChatBubble
  • ChatInput
  • CustomSwitch
  • LabeledInput
  • LabeledRadioButtons
  • MediaCard
  • SwipeableWrapper

ChatInput

A tinder like chat input

ChatInput_example

Usage

import React, { useState } from 'react';
import { MaterialIcons } from '@expo/vector-icons'
import { colors, ChatInput } from 'nottinderuikit'
const SimpleChatInput = () => {
  const [value, setValue] = useState('');
  const sendIcon = <MaterialIcons name='send' size={30} color={colors.darkGrey} />;
  const handleSend = () => {
    console.log(value);
    setValue('');
  }

  return <ChatInput
    value={value}
    handleChangeText={setValue}
    handleSend={handleSend}
    sendIcon={sendIcon}
  />
}

export default SimpleChatInput;

Props

  • value
  • handleChangeText
  • handleSend
  • sendIcon

Reference

value

Value of the input.

TypeDefaultRequired
stringundefinedtrue

handleChangeText

Function called when the text on the input changes.

TypeDefaultRequired
function: (nextValue: string) => voidundefinedtrue

handleSend

Function called when send is pressed.

TypeDefaultRequired
function: ()=> voidundefinedfalse

sendIcon

Send message icon.

TypeDefaultRequired
ReactNodeSendfalse
← ChatBubbleCustomSwitch →
  • Usage
  • Props
  • Reference
    • value
    • handleChangeText
    • handleSend
    • sendIcon
not-tinder-ui
Docs
Getting Started (or other categories)
More
GitHubStar
Facebook Open Source