InReview.js
2.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
//
// ClassName.js
//
// Created by Cheney Mars on 2018/9/26.
// Copyright © 2018年 saygoodlolita. All rights reserved.
//
import React, {Component} from "react";
import {Image, Text, TouchableOpacity, View} from "react-native";
import {zoomW} from "../../utils/getSize";
// import ForumHeader from "../../widget/ForumHeader";
const audit = require('../../img/audit.png');
const defaultIcon = require("../../img/defaultIcon.png");
export default class InReview extends Component {
static navigationOptions = ({ navigation, screenProps }) => ({
headerTitle: navigation.state.params.title,
headerLeft: (
<View style={{ flexDirection: "row", flex: 1 }}>
<TouchableOpacity
style={{
flexDirection: "column",
justifyContent: "center",
paddingRight: 15,
paddingLeft: 10
}}
onPress={
navigation.state.params ? navigation.state.params.back : null
}
>
<Image
source={require("../../img/loadBack.png")}
resizeMode="contain"
/>
</TouchableOpacity>
</View>
),
headerRight: (
<View style={{ flexDirection: "row", flex: 1, justifyContent: "center" }}>
<TouchableOpacity
style={{
flexDirection: "column",
justifyContent: "center",
paddingRight: 15,
paddingLeft: 10
}}
>
<Image
style={{ width: 20 / zoomW, height: 20 / zoomW }}
resizeMode="contain"
/>
</TouchableOpacity>
</View>
)
});
constructor(props) {
super(props);
}
componentDidMount() {
//设置头部
this.props.navigation.setParams({
back: () => {
this.props.navigation.goBack();
}
});
}
render() {
return (
<View style={{flex: 1,backgroundColor:'white',alignItems:'center'}}>
{/*<ForumHeader title={this.props.navigation.state.params.title} pop navigation={this.props.navigation}/>*/}
<Image style={{marginTop:113}} source={audit} />
<Text style={{marginTop:30,color:'#666666', fontSize:18}}> 审核中! </Text>
<Text style={{marginTop:6,color:'#999999', fontSize:14}}> 预计1-3个工作日内完成审核,请耐心等待... </Text>
</View>
);
}
}