xxxxxxxxxx
import {useState, Component } from 'react';
import { Alert, Button, StyleSheet, Text, Pressable, View, TouchableOpacity } from "react-native";
function App()
{
const [show, setShow] = useState(false);
return (
<View style={{ flex: 1, alignItems:"center", justifyContent:"center" }}>
<View style={{height: 200, width: 200, backgroundColor:show?"red":"blue"}}>
</View>
</View>
);
}
export default App;