import React, { Component } from "react" import { StyleSheet, Text, View, TextInput, Button } from "react-native" import NavigationUtil from "../navigator/NavigationUtil" import EvilIcons from "react-native-vector-icons/EvilIcons" import { unitWidth, unitHeight, getStatusBarHeight } from "../utils/AdapterUtil"; import MyButtom from '../component/MyButton' export default class Loginpage extends Component { componentDidMount() { this.timer = setTimeout(() => { // NavigationUtil.resetToHomePage(this.props) }, 5000) } componentWillMount() { this.timer && clearTimeout(this.timer) } render() { return ( 账号密码登录 +86 手机号注册登录 忘记密码 ) } } const styles = StyleSheet.create({ container: { flex: 1, paddingTop: getStatusBarHeight() + unitWidth * 138, paddingLeft: unitWidth * 60, paddingRight: unitWidth * 60, }, loginTitle: { fontSize: unitWidth * 38, fontWeight: "bold", color: "rgba(250,120,138,1)", marginBottom: unitWidth * 70 }, inputArea: { width: unitWidth * 628, height: unitHeight * 236, justifyContent: "space-between" }, inputPhone: { width: "100%", height: unitHeight * 98, borderRadius: unitWidth * 98, borderWidth: unitWidth * 1, borderColor: "#ccc", flexDirection: "row" }, inputLeft: { marginTop: unitHeight * 9, width: unitWidth * 147, height: unitHeight * 80, borderRightWidth: unitWidth * 1, borderRightColor: "#ccc", justifyContent: "center", alignItems: "center" }, inputRight: { width: unitWidth * 480, height: "100%", }, TextInput: { width: "100%", height: "100%", paddingLeft: unitWidth * 26, fontSize: unitWidth * 28 }, inputPass: { width: "100%", height: unitHeight * 98, borderRadius: unitWidth * 98, borderWidth: unitWidth * 1, borderColor: "#ccc", flexDirection: "row" }, forgetPassArea: { flexDirection: "row", justifyContent: "space-between", width: "100%", fontSize: unitWidth * 28, color: "#333333", marginTop: unitHeight * 28 }, loginBtnArea: { width:"100%", marginTop:unitHeight * 98, height:unitHeight * 84, justifyContent:'center', alignItems:'center' } })