Skip to content

Commit 3bf488a

Browse files
authored
Merge pull request #290 from meteorlxy/meteorlxy/popup-style
2 parents 28595a1 + aba7432 commit 3bf488a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/components/popup/Popup.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,12 @@ export const Popup: React.FC<PopupProps> = ({
8989

9090
return (
9191
<Modal
92-
visible={isVisible}
9392
animationType="slide"
9493
onRequestClose={() => {
9594
setIsVisible(false);
9695
}}
96+
transparent={true}
97+
visible={isVisible}
9798
{...modalProps}>
9899
<View style={[styles.container, style.container]}>
99100
<View style={[styles.modalView, style.modalView]}>
@@ -124,14 +125,13 @@ export const Popup: React.FC<PopupProps> = ({
124125

125126
const styles = StyleSheet.create({
126127
container: {
127-
backgroundColor: 'white',
128-
borderRadius: 10,
129-
maxHeight: SCREEN_HEIGHT * 0.6,
128+
backgroundColor: 'rgba(255,255,255,0.4)',
130129
flex: 1,
131130
justifyContent: 'center',
132131
alignItems: 'center',
133132
},
134133
modalView: {
134+
maxHeight: SCREEN_HEIGHT * 0.6,
135135
margin: 20,
136136
backgroundColor: 'white',
137137
borderRadius: 20,

0 commit comments

Comments
 (0)