react-dynamic-font
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -39,3 +39,3 @@ import React, { Component } from 'react'; | ||
</div> | ||
<p styleName="tag">with sooth animate</p> | ||
<p styleName="tag">with smooth animate</p> | ||
<div styleName="text left"> | ||
@@ -42,0 +42,0 @@ <ReactDynamicFont smooth content={this.state.content} /> |
@@ -60,2 +60,8 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
ReactDynamicFont.prototype.componentDidMount = function componentDidMount() { | ||
if (this.props.content && this.props.content.length) { | ||
this.fixWidth(); | ||
} | ||
}; | ||
ReactDynamicFont.prototype.componentDidUpdate = function componentDidUpdate(prevProps) { | ||
@@ -62,0 +68,0 @@ if (prevProps.content !== this.props.content && this.props.content.length) { |
{ | ||
"name": "react-dynamic-font", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "make your text does not wrap and dynamically adjust the font size", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -40,2 +40,8 @@ import React, { Component, PropTypes } from 'react'; | ||
componentDidMount() { | ||
if(this.props.content && this.props.content.length) { | ||
this.fixWidth(); | ||
} | ||
} | ||
componentDidUpdate(prevProps) { | ||
@@ -42,0 +48,0 @@ if(prevProps.content !== this.props.content && this.props.content.length) { |
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
174255
372
682