UNPKG

rn_supermap

Version:

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

92 lines (79 loc) 1.76 kB
import * as React from 'react' import { requireNativeComponent, ViewPropTypes, StyleSheet, View, InteractionManager, Platform } from "react-native"; import PropTypes from 'prop-types' import { scaleSize } from "../../../../src/utils"; import { getLanguage } from "../../../../src/language"; import constants from "../../../../src/containers/workspace/constants" class SMCollectSceneFormView extends React.Component { constructor() { super() this.state = { viewId: 0, visible: true, } } static propTypes = { visible: PropTypes.bool, onArObjectClick: PropTypes.func, ...ViewPropTypes, }; static defaultProps = { visible: true, } componentDidMount() { } componentDidUpdate(prevProps) { } componentWillUnmount() { } render() { var props = { ...this.props }; return ( <View style={styles.container} > <RCTCollectSceneFormView ref={ref => this.RCTCollectSceneFormView = ref} {...props} style={styles.view} /> </View> ); } } var styles = StyleSheet.create({ views: { flex: 1, alignSelf: 'stretch', backgroundColor: 'transparent', alignItems: 'center', justifyContent: 'center', overflow: 'hidden', flexDirection: 'column', }, view: { flex: 1, alignSelf: 'stretch', position: 'absolute', top: 0, bottom: 0, left: 0, right: 0, backgroundColor: 'white', }, container: { position: 'absolute', top: 0, bottom: 0, left: 0, right: 0, backgroundColor: 'white', }, }); var RCTCollectSceneFormView = requireNativeComponent('RCTCollectSceneFormView', SMCollectSceneFormView) export default SMCollectSceneFormView