鼠标单击后无法绘制塔

时间:2019-04-26 00:29:43

标签: java

我一直在研究塔防。现在的问题是,单击鼠标后,我的塔没有被拉上木板。它以前曾在工作,但现在却不在工作!

import React, { Component } from "react";
import { StyleSheet, Text, View, StatusBar } from "react-native";
import Logo from "../components/Logo";
import Form from "../components/Form";
export default class Signup extends Component<{}> {
  render() {
    return (
      <View style={styles.container}>
        <Logo />
        <Form type="Signup" />
        <View style={styles.signupTextCont}>
          <Text style={styles.signupText}>Already Have an account?</Text>
          <Text style={styles.signupButton}>Sign in</Text>
        </View>
      </View>
    );
  }
}
const styles = StyleSheet.create({
  container: {
    backgroundColor: "#455a64",
    flex: 1,
    alignItems: "center",
    justifyContent: "center"
  },
  signupTextCont: {
    flexGrow: 1,
    alignItems: "center",
    justifyContent: "center",
    paddingVertical: 16,
    flexDirection: "row"
  },
  signupText: {
    color: "rgba(255,255,255,0.7)",
    fontSize: 16
  },
  signupButton: {
    color: "#ffffff",
    fontSize: 16,
    paddingHorizontal: 5,
    fontWeight: "500"
  }
});



whenever i render either AppContainer or Routes i get the same result which is an empty screen, which is suppose to load Login.js

0 个答案:

没有答案