uatcomponent
Version:
40 lines (37 loc) • 896 B
JavaScript
/**
* 备注:异常界面
* create by Mark at 2019-July
*/
import React, { Component } from 'react';
import {
View,
Text,
Image,
TouchableOpacity,
StyleSheet,
ViewStyle
} from 'react-native';
type Props = {
style : ViewStyle,
};
type State = {};
export class ExceptionView extends Component <Props,State>{
static defaultProps :Props = {
}
state:State={
}
render(){
const {style} = this.props
return (
<View style={[styles.container,style]}>
<Image source={require('../../../resource/exception.png')} style={styles.img}/>
<Text style={styles.words}>获取数据异常</Text>
</View>
)
}
}
const styles = StyleSheet.create({
container:{width:'100%',height:200,alignItems:'center',justifyContent:'center',backgroundColor: 'white',},
img:{width:100,height:100,tintColor:'#eeeeee'},
words:{color:'#e1e1e1',marginTop:10},
})