rn_supermap
Version:
rn_supermap 一款基于React-Native框架的移动应用开发工具。基于该开发工具,用户可以使用JavaScript开发语言,开发出在Android和IOS操作系统下运行的原生移动GIS应用,入门门槛低,一次开发,处处运行。
38 lines (31 loc) • 1.15 kB
JavaScript
/*********************************************************************************
Copyright © SuperMap. All rights reserved.
Author: Zihao Wang
E-mail: pridehao@gmail.com
Description:仪表盘。
**********************************************************************************/
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import {
requireNativeComponent,
ViewPropTypes,
} from 'react-native';
class SMInstrumentChartView extends Component{
static propTypes = {
isShowCurValue:PropTypes.bool,
minValue:PropTypes.number,
maxValue:PropTypes.number,
splitCount:PropTypes.number,
startAngle:PropTypes.number,
endAngle:PropTypes.number,
backgroundColor:PropTypes.array,
gradient:PropTypes.string,
...ViewPropTypes,
};
render(){
var props = {...this.props};
return <RCTInstrumentChartView {...props} ref="InstrumentChartView"></RCTInstrumentChartView>
}
}
var RCTInstrumentChartView = requireNativeComponent('RCTInstrumentChartView',SMInstrumentChartView);
export default SMInstrumentChartView;