質問編集履歴
1
抜け漏れの修正。
test
CHANGED
File without changes
|
test
CHANGED
@@ -20,6 +20,9 @@
|
|
20
20
|
|
21
21
|
const ImageModal: React.FC<ImageModalProps> = ({ images, closeModal, ...rest }) => {
|
22
22
|
|
23
|
+
const contentsWidth = Dimensions.get('window').width
|
24
|
+
const contentsHeight = Dimensions.get('window').height
|
25
|
+
|
23
26
|
return (
|
24
27
|
<Modal {...rest}>
|
25
28
|
<TouchableOpacity activeOpacity={1} onPressOut={() => closeModal()}>
|
@@ -31,8 +34,8 @@
|
|
31
34
|
<Image
|
32
35
|
src={img.file_url}
|
33
36
|
objectFit="contain"
|
34
|
-
width=
|
37
|
+
width={contentsWidth}
|
35
|
-
height=
|
38
|
+
height={contentsHeight}
|
36
39
|
/>
|
37
40
|
)}
|
38
41
|
</div>
|