fix lint warnings

This commit is contained in:
Horcrux
2016-07-27 12:10:12 +08:00
parent f2ee72bb76
commit 7d09dcde29
19 changed files with 54 additions and 61 deletions
+3 -3
View File
@@ -1,4 +1,4 @@
import React, {Children, Component, cloneElement, PropTypes} from 'react';
import React, {Component, PropTypes} from 'react';
import {View, requireNativeComponent, StyleSheet} from 'react-native';
import ViewBox from './ViewBox';
@@ -57,7 +57,7 @@ class Svg extends Component{
width,
height,
flex: 0
}
};
}
if (props.viewbox) {
@@ -78,7 +78,7 @@ class Svg extends Component{
height={null}
viewBox={null}
preserveAspectRatio={null}
ref={ele => this.root = ele}
ref={ele => {this.root = ele;}}
style={[
styles.svg,
props.style,