Lint and updated stylesheet unit tests

This commit is contained in:
Nick
2017-10-23 16:41:51 -07:00
parent ce4daa3a5a
commit fa93ed332f
8 changed files with 13 additions and 15 deletions
+1
View File
@@ -1,3 +1,4 @@
/* eslint react/prop-types:0 */
import React from 'react';
import MapboxStyleSheet from '../utils/MapboxStyleSheet';
+1 -3
View File
@@ -1,11 +1,9 @@
import React from 'react';
import { NativeModules, requireNativeComponent } from 'react-native';
import { requireNativeComponent } from 'react-native';
import { LightLayerStyleProp } from '../utils/styleMap';
import AbstractLayer from './AbstractLayer';
const MapboxGL = NativeModules.MGLModule;
export const NATIVE_MODULE_NAME = 'RCTMGLLight';
const RCTMGLLight = requireNativeComponent(NATIVE_MODULE_NAME, Light);
+2 -3
View File
@@ -23,7 +23,7 @@ class MapStyleTransitionItem extends MapStyleItem {
duration: duration,
delay: delay,
},
...extras
...extras,
});
}
}
@@ -32,7 +32,7 @@ class MapStyleTranslationItem extends MapStyleItem {
constructor (x, y, extras = {}) {
super(StyleTypes.Translation, {
value: [x, y],
...extras
...extras,
});
}
}
@@ -81,7 +81,6 @@ function makeStyleValue (prop, value, extras = {}) {
let item;
if (!isUndefined(value.type) && !isUndefined(value.payload)) { // function
console.log(prop, value);
item = value;
item.processStops(prop);
} else if (styleMap[prop] === StyleTypes.Transition) {