floatingtextfield
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -12,5 +12,2 @@ import React, { Component } from 'react'; | ||
} | ||
this.props.lineColor = this.props.lineColor != null ? this.props.lineColor : this.lineColor | ||
this.props.headerColor = this.props.headerColor != null ? this.props.headerColor : this.lineColor | ||
this.props.isMandatory = this.props.isMandatory != null ? this.props.isMandatory : false | ||
} | ||
@@ -52,3 +49,3 @@ | ||
<View style={[styles.container, { borderColor:this.state.alertMandatory ? 'red' : this.props.lineColor, height:this.props.height != null ? this.props.height : 54 }]}> | ||
<TextInput secureTextEntry={this.props.secureTextEntry} style={[styles.textField, { height:'75%', top:20 }]} onChangeText={(text) => { | ||
<TextInput props={this.props} style={[styles.textField, { height:'75%', top:20 }]} onChangeText={(text) => { | ||
this.textChanged(text) | ||
@@ -58,3 +55,3 @@ }} onEndEditing={(text) => { | ||
}}/> | ||
<Text style={[styles.textFieldHeader, { display:'flex', top:top, color: this.props.headerColor }]}>{this.props.heading}</Text> | ||
<Text style={[styles.textFieldHeader, { display:'flex', top:top, color: this.props.titleColor != null ? this.props.titleColor : this.props.lineColor }]}>{this.props.title}</Text> | ||
</View> | ||
@@ -61,0 +58,0 @@ ) |
{ | ||
"name": "floatingtextfield", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "Floating label Textfield as in Android", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
2524
65