
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
react-native-material-textfield
Advanced tools
Material texfield with consistent behaviour on iOS and Android
npm install --save react-native-material-textfield
import React, { Component } from 'react';
import { TextField } from 'react-native-material-textfield';
export default class Example extends Component {
state = {
phone: '',
};
render() {
let { phone } = this.state;
return (
<TextField
label='Phone number'
ref='phone'
value={phone}
onBlur={ () => this.setState({ phone: this.refs.phone.value() }) }
/>
);
}
}
tintColor
- Text field accent color (default: rgb(0, 145, 234))textColor
- Text input color (default: rgba(0, 0, 0, .87)baseColor
- Text field base color (default: rgba(0, 0, 0, .38))label
- Text field label texterror
- Text field error texterrorColor
- Text field color for errored state (default: rgb(213, 0, 0))animationDuration
- Text field animation duration in ms (default: 225)characterRestriction
- Text field soft limit for character counteronFocus
- Focus callbackonBlur
- Blur callbackfocus()
- Acquire focusblur()
- Release focusclear()
- Clear text fieldvalue()
- Get current valueisFocused()
- Get current focus stateisRestricted()
- Get current restriction stategit clone https://github.com/n4kz/react-native-material-textfield.git
cd react-native-material-textfield/example
npm install
react-native run-ios # or run-android
BSD License
Copyright 2017 Alexander Nazarov. All rights reserved.
FAQs
Material textfield
The npm package react-native-material-textfield receives a total of 14,751 weekly downloads. As such, react-native-material-textfield popularity was classified as popular.
We found that react-native-material-textfield demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.