fix lint warnings.

This commit is contained in:
Horcrux
2016-08-12 13:46:40 +08:00
parent 821ba8af77
commit 1dbe898d88
3 changed files with 2 additions and 5 deletions

View File

@@ -3,7 +3,6 @@ import createReactNativeComponentClass from 'react/lib/createReactNativeComponen
import Shape from './Shape'; import Shape from './Shape';
import {transformProps} from '../lib/props'; import {transformProps} from '../lib/props';
import {GroupAttributes} from '../lib/attributes'; import {GroupAttributes} from '../lib/attributes';
import extractProps from '../lib/extract/extractProps';
class G extends Shape{ class G extends Shape{
static displayName = 'G'; static displayName = 'G';

View File

@@ -13,7 +13,6 @@ import {
} from 'react-native'; } from 'react-native';
import ViewBox from './ViewBox'; import ViewBox from './ViewBox';
import _ from 'lodash'; import _ from 'lodash';
import createReactNativeComponentClass from 'react/lib/createReactNativeComponentClass';
const RNSVGSvgViewManager = NativeModules.RNSVGSvgViewManager; const RNSVGSvgViewManager = NativeModules.RNSVGSvgViewManager;
// Svg - Root node of all Svg elements // Svg - Root node of all Svg elements
@@ -73,8 +72,8 @@ class Svg extends Component{
}; };
_onDataURL = (e) => { _onDataURL = (e) => {
let callback; while (this.onDataURLCallbacks.length) {
while (callback = this.onDataURLCallbacks.shift()) { let callback = this.onDataURLCallbacks.shift();
callback(e.nativeEvent.base64); callback(e.nativeEvent.base64);
} }
}; };

View File

@@ -1,6 +1,5 @@
import React, {PropTypes} from 'react'; import React, {PropTypes} from 'react';
import createReactNativeComponentClass from 'react/lib/createReactNativeComponentClass'; import createReactNativeComponentClass from 'react/lib/createReactNativeComponentClass';
import extractProps from '../lib/extract/extractProps';
import extractText from '../lib/extract/extractText'; import extractText from '../lib/extract/extractText';
import {numberProp, pathProps} from '../lib/props'; import {numberProp, pathProps} from '../lib/props';
import {TextAttributes} from '../lib/attributes'; import {TextAttributes} from '../lib/attributes';