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, flexDirection: "column"
}}>
<View style={{ flex: 1, backgroundColor: "red" }} />
<View style={{ flex: 1, backgroundColor: "darkorange", alignItems:"center", justifyContent:"center" }}>
<Text style={{display:show?"block":"none"}}>Test</Text>
</View>
<View style={{ flex: 3, backgroundColor: "green" }}>
<TouchableOpacity onPress={()=>setShow(!show)}>
<Text>
Click To Disappear Text
</Text>
</TouchableOpacity>
</View>
</View>
);
}
export default App;