rn_supermap
Version:
rn_supermap 一款基于React-Native框架的移动应用开发工具。基于该开发工具,用户可以使用JavaScript开发语言,开发出在Android和IOS操作系统下运行的原生移动GIS应用,入门门槛低,一次开发,处处运行。
78 lines (66 loc) • 1.4 kB
JavaScript
import * as React from "react";
import {
requireNativeComponent,
ViewPropTypes,
StyleSheet,
View,
InteractionManager,
} from "react-native";
import PropTypes from "prop-types";
import { SIllegallyParkView } from "rn_supermap";
import constants from "../../../../src/containers/workspace/constants";
/**
* 违章采集
*/
class SMIllegallyParkView extends React.Component {
props: {
language: String,
};
constructor() {
super();
}
state = {
viewId: 0,
};
static propTypes = {
...ViewPropTypes,
};
componentDidUpdate(prevProps) {
// SIllegallyParkView.init(this.props.language)
SIllegallyParkView.onStart();
}
componentWillUnmount() {
SIllegallyParkView.onDestroy();
}
render() {
var props = { ...this.props };
return (
<View style={styles.container}>
<RCTIllegallyParkView
ref={(ref) => (this.RCTIllegallyParkView = ref)}
{...props}
style={styles.view}
/>
</View>
);
}
}
var styles = StyleSheet.create({
view: {
flex: 1,
alignSelf: "stretch",
},
container: {
position: "absolute",
top: 45,
bottom: 0,
left: 0,
right: 0,
// backgroundColor: '#rgba(255, 255, 255, 0)',
},
});
var RCTIllegallyParkView = requireNativeComponent(
"RCTIllegallyParkView",
SMIllegallyParkView
);
export default SMIllegallyParkView;