@gyjshow/react-native-image-viewing 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ImageViewing.js +1 -1
- package/package.json +1 -1
package/dist/ImageViewing.js
CHANGED
|
@@ -16,7 +16,7 @@ import useRequestClose from "./hooks/useRequestClose";
|
|
|
16
16
|
const DEFAULT_ANIMATION_TYPE = "fade";
|
|
17
17
|
const DEFAULT_BG_COLOR = "#000";
|
|
18
18
|
const DEFAULT_DELAY_LONG_PRESS = 800;
|
|
19
|
-
const SCREEN = Dimensions.get("
|
|
19
|
+
const SCREEN = Dimensions.get("window");
|
|
20
20
|
const SCREEN_WIDTH = SCREEN.width;
|
|
21
21
|
function ImageViewing({ images, keyExtractor, imageIndex, visible, onRequestClose, onLongPress = () => { }, onImageIndexChange, animationType = DEFAULT_ANIMATION_TYPE, backgroundColor = DEFAULT_BG_COLOR, presentationStyle, swipeToCloseEnabled, doubleTapToZoomEnabled, delayLongPress = DEFAULT_DELAY_LONG_PRESS, HeaderComponent, FooterComponent, modalProps, }) {
|
|
22
22
|
const imageList = useRef(null);
|
package/package.json
CHANGED