UNPKG

imobile_for_javascript

Version:

iMobile for JavaScript,是SuperMap iMobile推出的一款基于React-Native框架的移动应用开发工具。基于该开发工具,用户可以使用JavaScript开发语言,开发出在Android和IOS操作系统下运行的原生移动GIS应用,入门门槛低,一次开发,处处运行。

25 lines (20 loc) 623 B
/** * Created by will on 2016/9/7. */ let React = require('react'); let {requireNativeComponent,View}=require('react-native'); class SMLegendView extends React.Component{ static propTypes = { mapId:React.PropTypes.string, ...View.propTypes, }; _refresh = (event) => { console.log(event.nativeEvent.enableRedraw); } render(){ var props = {...this.props}; return <RCTLegendView {...props} onChange={this._refresh} ref="LegendView"></RCTLegendView> } } var RCTLegendView = requireNativeComponent('RCTLegendView',SMLegendView); export default SMLegendView;