Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions LightboxOverlay.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down Expand Up @@ -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]}),
}];
Expand Down