mirror of
https://github.com/zoriya/react-native-svg.git
synced 2025-12-21 06:15:15 +00:00
fix lint warnings.
This commit is contained in:
@@ -3,7 +3,6 @@ import createReactNativeComponentClass from 'react/lib/createReactNativeComponen
|
||||
import Shape from './Shape';
|
||||
import {transformProps} from '../lib/props';
|
||||
import {GroupAttributes} from '../lib/attributes';
|
||||
import extractProps from '../lib/extract/extractProps';
|
||||
|
||||
class G extends Shape{
|
||||
static displayName = 'G';
|
||||
|
||||
@@ -13,7 +13,6 @@ import {
|
||||
} from 'react-native';
|
||||
import ViewBox from './ViewBox';
|
||||
import _ from 'lodash';
|
||||
import createReactNativeComponentClass from 'react/lib/createReactNativeComponentClass';
|
||||
const RNSVGSvgViewManager = NativeModules.RNSVGSvgViewManager;
|
||||
|
||||
// Svg - Root node of all Svg elements
|
||||
@@ -73,8 +72,8 @@ class Svg extends Component{
|
||||
};
|
||||
|
||||
_onDataURL = (e) => {
|
||||
let callback;
|
||||
while (callback = this.onDataURLCallbacks.shift()) {
|
||||
while (this.onDataURLCallbacks.length) {
|
||||
let callback = this.onDataURLCallbacks.shift();
|
||||
callback(e.nativeEvent.base64);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import React, {PropTypes} from 'react';
|
||||
import createReactNativeComponentClass from 'react/lib/createReactNativeComponentClass';
|
||||
import extractProps from '../lib/extract/extractProps';
|
||||
import extractText from '../lib/extract/extractText';
|
||||
import {numberProp, pathProps} from '../lib/props';
|
||||
import {TextAttributes} from '../lib/attributes';
|
||||
|
||||
Reference in New Issue
Block a user