Skip to content

Instantly share code, notes, and snippets.

@patissier-boulanger
Last active January 5, 2023 06:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save patissier-boulanger/5de678d2040345bf8e1db4e59b92bb1f to your computer and use it in GitHub Desktop.
Save patissier-boulanger/5de678d2040345bf8e1db4e59b92bb1f to your computer and use it in GitHub Desktop.
medium-reanimated-modal 2
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