New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-native-material-textinput

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-material-textinput

Textual input component for React Native

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
82
decreased by-32.23%
Maintainers
1
Weekly downloads
 
Created
Source

Material Design Text Input

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

Usage

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

export default class Example extends Component {
  state = {
    name: ''
  }

  render() {
    let { name } = this.state

    return (
      <TextInput
        label="Name"
        value={name}
        onChangeText={name => this.setState({ name })}
      />
    )
  }
}

Properties

Label

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

Placeholder

NameTypeDefault
placeholderString
placeholderColorStringgray

Input

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

Underline

NameTypeDefault
underlineDurationNumber200
underlineHeightNumber1
underlineColorStringgray
underlineActiveColorString#3f51b5
underlineActiveHeightNumber2

ErrorHelper

NameTypeDefault
errorString
errorPaddingTopNumber8
errorColorString#fc1f4a
errorFontSizeNumber12

Other TextInput properties will also work

Example

git clone https://github.com/perushevandkhmelev-agency/react-native-material-textinput
cd react-native-material-textinput/example
yarn # or npm install
yarn start # or npm start

License

The MIT License.

See LICENSE

Keywords

FAQs

Package last updated on 11 Sep 2017

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc