File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -64,19 +64,27 @@ export default function Lightbox(props: Props): Node {
64
64
height : 300 ,
65
65
flex : 1 ,
66
66
} ,
67
- overlay : {
67
+ header : {
68
68
backgroundColor : 'black' ,
69
69
opacity : 0.8 ,
70
70
position : 'absolute' ,
71
71
width : windowWidth ,
72
+ ...( headerFooterVisible ? { top : 0 } : { bottom : windowHeight } ) ,
73
+ } ,
74
+ footer : {
75
+ backgroundColor : 'black' ,
76
+ opacity : 0.8 ,
77
+ position : 'absolute' ,
78
+ width : windowWidth ,
79
+ ...( headerFooterVisible ? { bottom : 0 } : { top : windowHeight } ) ,
72
80
} ,
73
81
container : {
74
82
flex : 1 ,
75
83
justifyContent : 'space-between' ,
76
84
alignItems : 'center' ,
77
85
} ,
78
86
} ) ,
79
- [ windowWidth ] ,
87
+ [ headerFooterVisible , windowWidth , windowHeight ] ,
80
88
) ;
81
89
82
90
return (
@@ -103,7 +111,7 @@ export default function Lightbox(props: Props): Node {
103
111
onTap = { handleImagePress }
104
112
onViewTap = { handleImagePress }
105
113
/>
106
- < View style = { [ styles . overlay , headerFooterVisible ? { top : 0 } : { bottom : windowHeight } ] } >
114
+ < View style = { styles . header } >
107
115
< LightboxHeader
108
116
onPressBack = { ( ) => {
109
117
navigation . dispatch ( navigateBack ( ) ) ;
@@ -113,7 +121,7 @@ export default function Lightbox(props: Props): Node {
113
121
senderId = { message . sender_id }
114
122
/>
115
123
</ View >
116
- < View style = { [ styles . overlay , headerFooterVisible ? { bottom : 0 } : { top : windowHeight } ] } >
124
+ < View style = { styles . footer } >
117
125
< LightboxFooter
118
126
displayMessage = { footerMessage }
119
127
onOptionsPress = { ( ) => {
You can’t perform that action at this time.
0 commit comments