我正在使用博览会小吃。应用程序可以在IOS上正常工作,但是在android上却出现了上述错误。我没有在组件中使用“ fontWeight”属性,那么我也遇到了错误。
import React from 'react';
import { StyleSheet, Text, View, TextInput, Image, Dimensions, TouchableOpacity} from 'react-native';
import Button from '../../componentStore/Button'
const {height} = Dimensions.get('window');
export default class Login extends React.Component {
constructor(props) {
super(props)
}
doSignUp = () => {
}
render() {
return (
<View style={styles.container}>
<View style={styles.imageContainer}>
<Image
style={styles.image}
source={require("../../assets/loginImage.png")}
/>
</View>
<View>
<View style={styles.header}>
<Text style={styles.text}>Create Business Account</Text>
</View>
<View style={styles.inputs}>
<TextInput style={styles.input}
underlineColorAndroid="transparent"
placeholder="Email"
placeholderTextColor="#676B7F"
autoCapitalize="none" />
<TextInput style={styles.input}
underlineColorAndroid="transparent"
placeholder="Password"
secureTextEntry={true}
placeholderTextColor="#676B7F"
autoCapitalize="none" />
<Button content={"Sign Up"} onClick={this.doSignUp}></Button>
</View>
<View style={styles.footer}>
<Text style={styles.footerText}>Already Signed Up?</Text>
<Text style={styles.footerText2}> Log In</Text>
</View>
</View>
</View>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
},
imageContainer:{
},
image:{
width: "100%",
height: height * 0.5
},
header:{
padding: 15
},
text:{
color: "#1D194D",
fontFamily: "AbrilFatface",
fontSize: 26,
letterSpacing: 0.4
},
inputs:{
display: "flex",
justifyContent: "center",
alignItems: "center"
},
input:{
backgroundColor: "#FBFAFB",
width: "80%",
borderRadius: 30,
padding: 15,
margin: 5
},
footer:{
padding: 15,
flexDirection: "row",
justifyContent: "center"
},
footerText:{
color: "#676B7F",
fontSize:15
},
footerText2:{
color: "#1D194D",
fontSize:15
}
});
我正在使用35.0.0版本的博览会,并使用过博览会小吃。 我在网上做。 有时我什至没有收到错误,但是expo停止在android view中工作。