floatingtextfield
Advanced tools
Comparing version 1.0.3 to 1.0.4
13
index.js
@@ -5,5 +5,2 @@ import React, { Component } from 'react'; | ||
class FloatingLabel extends Component { | ||
lineColor = 'black' | ||
headerColor = 'black' | ||
@@ -16,4 +13,4 @@ constructor(props) { | ||
} | ||
this.props.lineColor = this.props.lineColor != null ? this.props.lineColor : lineColor | ||
this.props.headerColor = this.props.headerColor != null ? this.props.headerColor : this.props.lineColor | ||
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 | ||
@@ -33,2 +30,5 @@ } | ||
} | ||
if(this.props.onChangeText) { | ||
this.props.onChangeText(text) | ||
} | ||
} | ||
@@ -42,2 +42,5 @@ | ||
} | ||
if(this.props.endEditing) { | ||
this.props.endEditing() | ||
} | ||
} | ||
@@ -44,0 +47,0 @@ |
{ | ||
"name": "floatingtextfield", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Floating label Textfield as in Android", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2795
68