InReview.js 2.75 KB
//
//  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>
        );
    }
}