Files
T

28 lines
627 B
JavaScript
Raw Permalink Normal View History

2017-09-26 13:24:25 -07:00
import React from 'react';
2017-09-26 13:40:04 -07:00
import { requireNativeComponent } from 'react-native';
2017-09-26 13:24:25 -07:00
import { LightLayerStyleProp } from '../utils/styleMap';
import AbstractLayer from './AbstractLayer';
export const NATIVE_MODULE_NAME = 'RCTMGLLight';
const RCTMGLLight = requireNativeComponent(NATIVE_MODULE_NAME, Light);
/**
* Light represents the light source for extruded geometries
*/
class Light extends AbstractLayer {
static propTypes = {
/**
* Customizable style attributes
*/
style: LightLayerStyleProp,
};
render () {
return <RCTMGLLight reactStyle={this.getStyle()} />;
}
}
export default Light;