Socket
Socket
Sign inDemoInstall

react-native-material-textinput

Package Overview
Dependencies
3
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-native-material-textinput

Textual input component for React Native


Version published
Weekly downloads
199
decreased by-43.14%
Maintainers
1
Install size
88.7 kB
Created
Weekly downloads
 

Readme

Source

Material Design Text Input

npm version npm downloads github issues bundlephobia license

Textual input component for React Native (iOS & Android).

example

Usage

import React, { useState } from 'react'
import TextInput from 'react-native-material-textinput'

const Example = () => {
  const [name, setName] = useState('')

  const handleInputChange = (value) => setName(value)

  return <TextInput label="Name" value={name} onChangeText={handleInputChange} />
}

export default Example

Properties

Label

nametypedefault
labelString
labelDurationNumber200
labelColorStringgray
labelActiveTopNumber-18
labelActiveColorString#3f51b5
labelActiveScaleNumber0.8

Placeholder

NameTypeDefault
placeholderString
placeholderColorStringgray

Input

NameTypeDefault
inputRefRef
minHeightNumber
heightNumber
maxHeightNumber
marginTopNumber
marginRightNumber
marginBottomNumber8
marginLeftNumber
paddingTopNumber20
paddingRightNumber0
paddingBottomNumber8
paddingLeftNumber0
colorStringblack
activeColorString
fontFamilyString
fontSizeNumber15
fontWeightString or Numbernormal
onFocusFunction
onBlurFunction
onChangeTextFunction
onContentSizeChangeFunction

Underline

NameTypeDefault
underlineDurationNumber200
underlineHeightNumber1
underlineColorStringgray
underlineActiveColorString#3f51b5
underlineActiveHeightNumber2

ErrorHelper

NameTypeDefault
errorString
errorPaddingTopNumber8
errorColorString#fc1f4a
errorFontSizeNumber12

Other TextInput properties will also work

RTL

Supported using I18nManager from react-native

License

The MIT License.

See LICENSE

Keywords

FAQs

Last updated on 15 Sep 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc