React-Native-TextInputLayout
Pure js implemention material design TextInputLayout component for react-native, works on both android and ios.
Preview

Build and run the demo
cd TextInputLayoutDemo/
npm install
react-native run-ios
Usage
Install from npm:
npm install --save rn-textinputlayout
Integrate into your app:
'use strict';import React Component from 'react';import StyleSheet View TextInput Text from 'react-native';import TextInputLayout from 'rn-textinputlayout'; const EMAIL_REGEX = /^@$/; { return <View => <TextInputLayout = = > <TextInput = = /> </TextInputLayout> <TextInputLayout => <TextInput = = = /> </TextInputLayout> </View> ; }const styles = StyleSheet;
Props
- hintColor
- errorColor
- focusColor
- labelFontSize
- labelText
- checkValid