Skip to content

Commit 643163e

Browse files
committed
[Android] removed StatusBar Offset due to changes in React Native's measure
1 parent 4d2636b commit 643163e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

LightboxOverlay.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import { Animated, Dimensions, Modal, PanResponder, Platform, StatusBar, StyleSh
55
const WINDOW_HEIGHT = Dimensions.get('window').height;
66
const WINDOW_WIDTH = Dimensions.get('window').width;
77
const DRAG_DISMISS_THRESHOLD = 150;
8-
const STATUS_BAR_OFFSET = (Platform.OS === 'android' ? -25 : 0);
98
const isIOS = Platform.OS === 'ios';
109

1110
const styles = StyleSheet.create({
@@ -211,7 +210,7 @@ export default class LightboxOverlay extends Component {
211210

212211
const openStyle = [styles.open, {
213212
left: openVal.interpolate({inputRange: [0, 1], outputRange: [origin.x, target.x]}),
214-
top: openVal.interpolate({inputRange: [0, 1], outputRange: [origin.y + STATUS_BAR_OFFSET, target.y + STATUS_BAR_OFFSET]}),
213+
top: openVal.interpolate({inputRange: [0, 1], outputRange: [origin.y, target.y]}),
215214
width: openVal.interpolate({inputRange: [0, 1], outputRange: [origin.width, WINDOW_WIDTH]}),
216215
height: openVal.interpolate({inputRange: [0, 1], outputRange: [origin.height, WINDOW_HEIGHT]}),
217216
}];

0 commit comments

Comments
 (0)