imobile_for_reactnative
Version:
iMobile for ReactNative,是SuperMap iMobile推出的一款基于React-Native框架的移动应用开发工具。基于该开发工具,用户可以使用JavaScript开发语言,开发出在Android和IOS操作系统下运行的原生移动GIS应用,入门门槛低,一次开发,处处运行。
43 lines (33 loc) • 657 B
JavaScript
/**
* Created by Yang Shanglong on 2018/11/21.
*/
import * as React from 'react'
import {
requireNativeComponent,
ViewPropTypes,
StyleSheet,
View,
} from 'react-native'
import PropTypes from 'prop-types'
class SMRLegendView extends React.Component {
constructor() {
super()
this.tableStyle = {}
}
state = {
viewId: 0,
}
static propTypes = {
...ViewPropTypes,
}
render() {
return (
<RCTLegendView
ref={ref => this.legendview = ref}
{...this.props}
/>
)
}
}
const RCTLegendView = requireNativeComponent('RCTLegendView', SMRLegendView)
export default SMRLegendView