Question : react native toggle visibility functional component
Answered by : max-lerman
const [showComponent,setShowComponent] = useState(false); const handleChange = () => { setShowComponent(!showComponent); }
{ showComponent ? <Image /> : undefined }
Source : | Last Update : Thu, 20 Oct 22