UNPKG

rn_supermap

Version:

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

63 lines (54 loc) 1.23 kB
import * as React from "react"; import { requireNativeComponent, ViewPropTypes, StyleSheet, View, InteractionManager, Platform, DeviceEventEmitter, } from "react-native"; import PropTypes from "prop-types"; import { scaleSize } from "../../../../src/utils"; import { getLanguage } from "../../../../src/language"; import { SAIClassifyView } from "rn_supermap"; import constants from "../../../../src/containers/workspace/constants"; class SMAIClassifyView extends React.Component { static propTypes = { ...ViewPropTypes, }; static defaultProps = {}; componentWillUnmount() { SAIClassifyView.dispose(); } render() { var props = { ...this.props }; return ( <View style={styles.container}> <RCTAIClassifyView ref={(ref) => (this.RCTAIClassifyView = ref)} {...props} style={styles.view} /> </View> ); } } var styles = StyleSheet.create({ view: { flex: 1, alignSelf: "stretch", }, container: { position: "absolute", top: 0, bottom: 0, left: 0, right: 0, }, }); var RCTAIClassifyView = requireNativeComponent( "RCTAIClassifyView", SMAIClassifyView ); export default SMAIClassifyView;