From fe5826841da51968a1fee724b2ab8effc3d49761 Mon Sep 17 00:00:00 2001 From: Nicolas Cuillery Date: Wed, 25 Oct 2017 17:21:45 -0400 Subject: [PATCH] Remove the statusbar offset --- LightboxOverlay.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/LightboxOverlay.js b/LightboxOverlay.js index 7ed2243..d526867 100644 --- a/LightboxOverlay.js +++ b/LightboxOverlay.js @@ -5,7 +5,6 @@ import { Animated, Dimensions, Modal, PanResponder, Platform, StatusBar, StyleSh const WINDOW_HEIGHT = Dimensions.get('window').height; const WINDOW_WIDTH = Dimensions.get('window').width; const DRAG_DISMISS_THRESHOLD = 150; -const STATUS_BAR_OFFSET = (Platform.OS === 'android' ? -25 : 0); const isIOS = Platform.OS === 'ios'; const styles = StyleSheet.create({ @@ -211,7 +210,7 @@ export default class LightboxOverlay extends Component { const openStyle = [styles.open, { left: openVal.interpolate({inputRange: [0, 1], outputRange: [origin.x, target.x]}), - top: openVal.interpolate({inputRange: [0, 1], outputRange: [origin.y + STATUS_BAR_OFFSET, target.y + STATUS_BAR_OFFSET]}), + top: openVal.interpolate({inputRange: [0, 1], outputRange: [origin.y, target.y]}), width: openVal.interpolate({inputRange: [0, 1], outputRange: [origin.width, WINDOW_WIDTH]}), height: openVal.interpolate({inputRange: [0, 1], outputRange: [origin.height, WINDOW_HEIGHT]}), }];