mirror of
https://github.com/zoriya/react-native-svg.git
synced 2025-12-21 14:25:14 +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 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';
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -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';
|
||||||
|
|||||||
Reference in New Issue
Block a user