rn_supermap
Version:
rn_supermap 一款基于React-Native框架的移动应用开发工具。基于该开发工具,用户可以使用JavaScript开发语言,开发出在Android和IOS操作系统下运行的原生移动GIS应用,入门门槛低,一次开发,处处运行。
40 lines (33 loc) • 1.18 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 SMLineChartView extends Component{
static propTypes = {
title:PropTypes.string,
textSize:PropTypes.number,
axisTitleSize:PropTypes.number,
axisLableSize:PropTypes.number,
xAxisTitle:PropTypes.string,
yAxisTitle:PropTypes.string,
allowsUserInteraction:PropTypes.bool,
hightLightColor:PropTypes.array,
geoId:PropTypes.number,
chartDatas:PropTypes.array,
...ViewPropTypes,
};
render(){
var props = {...this.props};
return <RCTLineChartView {...props} ref="LineChartView"></RCTLineChartView>
}
}
var RCTLineChartView = requireNativeComponent('RCTLineChartView',SMLineChartView);
export default SMLineChartView;