import React, { useState } from "react"; import { SafeAreaView, Text, View, StyleSheet, Image } from "react-native"; import MaterialCommunityIcons from "react-native-vector-icons/MaterialCommunityIcons"; const App = () => { const [character, setCharacter] = useState({ name: "Able", age: 19, mood: "worried", status: "NOT INFECTED", message: "don't ask, follow me", location: "in classroom", infectionStatus: "Started the infection", }); return ( Made by Aidyn67 {character.status} {character.name} age: {character.age} mood: {character.mood} {character.name}: {character.message} ({character.location}) {character.infectionStatus} ); }; const styles = StyleSheet.create({ container: { flex: 1, padding: 20, backgroundColor: "#fff", }, header: { flexDirection: "row", justifyContent: "space-between", marginBottom: 20, }, headerText: { fontSize: 16, fontWeight: "bold", }, status: { fontSize: 16, fontWeight: "bold", color: "red", }, image: { width: 150, height: 150, alignSelf: "center", marginBottom: 20, }, infoContainer: { alignItems: "center", }, infoText: { fontSize: 16, marginBottom: 5, }, infectionStatus: { fontSize: 16, marginTop: 10, color: "red", }, }); export default App;