Skip to content

A custom react-native textinput UI component library for React Native

Notifications You must be signed in to change notification settings

BrittoPaulo/react-native-dynamic-textinput

 
 

Repository files navigation

react-native-dynamic-textinput

Demo

Installation

npm i react-native-dynamic-textinput --save
npm i react-native-vector-icons --save

or

yarn add react-native-dynamic-textinput
yarn add react-native-vector-icons

Usage

import DynamicTextinput from 'react-native-dynamic-textinput';

<DynamicTextinput
  backgroundColor={'black'}
  borderTopColor={'black'}
  placeholderText={'Write a message here'}
  placeholderTextColor="#CFD1DE"
  messageTextColor={'#000'}
  textInputBgColor={'#f5f5f5'}
  editable={true}
  multiline={true}
  keyboardType={'default'}
  sendButtonDisableColor={'#f5f5f0'}
  sendButtonEnableColor={'#0C0A6C'}
  disableSendButton={false}
  onPressSendButton={() => console.debug("message sent")} //add your action
  messageText={message} //Your message variable
  onChange={(msg) => console.debug(msg)}
/>

Props

Prop type description
editable boolean define if user can edit the typed text
multiline boolean enable multiple lines
sendButtonDisableColor string sendbutton disabled color
sendButtonEnableColor string sendbutton enabled color
borderTopColor string component borderTopColor
placeholderText string textinput placeholder value
placeholderTextColor string textInput placeholder color
messageTextColor string typed text color
keyboardType string check react-native keyboardType
sendButtonBgColor string sendbutton background color
textInputBgColor string textInput background color
backgroundColor string component backgroundColor
disableSendButton bool disable sendbutton
howManyLeftButtons number number of buttons on left from the textInput
leftButtons React-native View add buttons on left from the textInput

About

A custom react-native textinput UI component library for React Native

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 84.8%
  • Ruby 15.2%