我想将发布到火灾基地的数据/图片拉到我家中的平面列表中
screen.please我需要一个人来指导我完成...谢谢
export default class HomeScreen extends React.Component {
state = {
email: "",
displayName: "",
};
componentDidMount() {
const { email, displayName } = firebase.auth().currentUser;
this.setState({ email, displayName });
}
signOutUser = () => {
firebase.auth().signOut();
};
render() {
LayoutAnimation.easeInEaseOut();
return (
<View style={styles.container}>
<View style={styles.header}>
<Text style={styles.headerTitle}>KhaySocial</Text>
</View>
<View style={styles.container}>
<Text>Hi {this.state.email} </Text>
</View>
<TouchableOpacity style={{ marginTop: 32 }} onPress={this.signOutUser}>
<Text>logout</Text>
</TouchableOpacity>
</View>
);
}
}