mirror of
https://github.com/status-im/react-native-mapbox-gl.git
synced 2026-08-31 04:51:15 +00:00
Updated autogen script and code to support Light
This commit is contained in:
@@ -13,7 +13,8 @@ class DocJSONBuilder {
|
||||
this._styledLayers = {};
|
||||
|
||||
for (let styleLayer of styledLayers) {
|
||||
this._styledLayers[pascelCase(styleLayer.name) + 'Layer'] = styleLayer;
|
||||
const ComponentName = pascelCase(styleLayer.name);
|
||||
this._styledLayers[ComponentName + (ComponentName === 'Light' ? '' : 'Layer')] = styleLayer;
|
||||
}
|
||||
|
||||
this._filePath = INPUT_PATH;
|
||||
|
||||
Reference in New Issue
Block a user