ProcessManagement.js 1.51 KB
import React, {Component} from 'react';
import {
    View,
    Text,
    Image,
    TextInput,
    ScrollView,
    TouchableOpacity,
    StyleSheet
} from "react-native";
import {NoDoublePress} from "../utils/Common";
import {width} from "../utils/getSize";
import PickerView from "../components/PickerView";
import FiveStarView from "../components/FiveStarView";

export default class ProcessManagement extends Component {

    constructor(props) {
        super(props);
        this.state={
            querySwitch: 'Common',
        };
    }

    componentWillMount() {
        //设置头部
        this.props.navigation.setParams({
            isBack:true,
            title: '组件'
        });
    }

    render() {
        return (
            <View style={{flex: 1, backgroundColor: 'white'}}>
                <TouchableOpacity
                    style={{width: width, flexDirection: 'row', justifyContent: 'center', alignItems: 'center'}}
                    activeOpacity={0.8}
                    onPress={() =>{}}
                >
                    <View style={{flex: 1}}>
                        <Text style={{fontSize: 16}}>日期</Text>
                        <TextInput placeholderTextColor={"#999999"}/>
                    </View>
                </TouchableOpacity>
                <PickerView />
                <FiveStarView/>
            </View>
        );
    }
}

const styles = StyleSheet.create({
    lineStyle: {
        width: '100%',
        height: 3,
        position: 'absolute',
        bottom: 0,
    },
})