Last active
January 5, 2023 06:36
-
-
Save patissier-boulanger/5de678d2040345bf8e1db4e59b92bb1f to your computer and use it in GitHub Desktop.
medium-reanimated-modal 2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, {useState} from 'react'; | |
import {Pressable, Text, View, SafeAreaView} from 'react-native'; | |
import {Modal} from './src/components/Modal'; | |
const App = () => { | |
const [showModal, setShowModal] = useState(false); | |
const handleOnPress = () => { | |
setShowModal(modalShownState => !modalShownState); | |
}; | |
return ( | |
<> | |
<Modal showModal={showModal} /> | |
// ... | |
</> | |
); | |
}; | |
export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment