Skip to content

Commit 193f9b6

Browse files
chrisbobbegnprice
authored andcommitted
Lightbox: Stop passing new style prop to PhotoView on each render
1 parent 9f1afb6 commit 193f9b6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lightbox/Lightbox.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ export default function Lightbox(props: Props): Node {
5757
img: {
5858
height: 300,
5959
flex: 1,
60+
width: '100%',
6061
},
6162
header: {
6263
backgroundColor: 'black',
@@ -92,7 +93,7 @@ export default function Lightbox(props: Props): Node {
9293
? { uri: src.toString(), headers: getAuthHeaders(auth) }
9394
: { uri: src.toString() }
9495
}
95-
style={[styles.img, { width: '100%' }]}
96+
style={styles.img}
9697
// Doesn't seem to do anything on iOS:
9798
// https://github.com/alwx/react-native-photo-view/issues/62
9899
// https://github.com/alwx/react-native-photo-view/issues/98

0 commit comments

Comments
 (0)