Skip to content

Commit

Permalink
chore: fix eslint warning
Browse files Browse the repository at this point in the history
  • Loading branch information
wonsikin committed Mar 16, 2018
1 parent c7fff31 commit 8c5799f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ Example/android/
ios/
Example/ios/
screenShoots/
Example
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ export default class Barcode extends PureComponent {
<Surface height={this.props.height} width={this.state.barCodeWidth}>
<Shape d={this.state.bars} fill={this.props.lineColor} />
</Surface>
if (typeof(this.props.text) != "undefined") {
<Text style={{color: this.props.textColor, width: this.state.barCodeWidth, textAlign: "center"}} >{this.props.text}</Text>
if (typeof(this.props.text) != 'undefined') {
<Text style={{color: this.props.textColor, width: this.state.barCodeWidth, textAlign: 'center'}} >{this.props.text}</Text>
}
</View>
);
Expand Down

0 comments on commit 8c5799f

Please sign in to comment.