Skip to content

Commit

Permalink
Merge pull request #290 from meteorlxy/meteorlxy/popup-style
Browse files Browse the repository at this point in the history
  • Loading branch information
tschoffelen committed Apr 17, 2024
2 parents 28595a1 + aba7432 commit 3bf488a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/popup/Popup.tsx
Expand Up @@ -89,11 +89,12 @@ export const Popup: React.FC<PopupProps> = ({

return (
<Modal
visible={isVisible}
animationType="slide"
onRequestClose={() => {
setIsVisible(false);
}}
transparent={true}
visible={isVisible}
{...modalProps}>
<View style={[styles.container, style.container]}>
<View style={[styles.modalView, style.modalView]}>
Expand Down Expand Up @@ -124,14 +125,13 @@ export const Popup: React.FC<PopupProps> = ({

const styles = StyleSheet.create({
container: {
backgroundColor: 'white',
borderRadius: 10,
maxHeight: SCREEN_HEIGHT * 0.6,
backgroundColor: 'rgba(255,255,255,0.4)',
flex: 1,
justifyContent: 'center',
alignItems: 'center',
},
modalView: {
maxHeight: SCREEN_HEIGHT * 0.6,
margin: 20,
backgroundColor: 'white',
borderRadius: 20,
Expand Down

0 comments on commit 3bf488a

Please sign in to comment.