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
10 changes: 6 additions & 4 deletions LightboxOverlay.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Animated, Dimensions, Modal, PanResponder, Platform, StatusBar, StyleSheet, Text, TouchableOpacity, View } from 'react-native';
import { Animated, Dimensions, Modal, PanResponder, Platform, StatusBar, SafeAreaView, StyleSheet, Text, TouchableOpacity, View } from 'react-native';

const WINDOW_HEIGHT = Dimensions.get('window').height;
const WINDOW_WIDTH = Dimensions.get('window').width;
Expand Down Expand Up @@ -220,9 +220,11 @@ export default class LightboxOverlay extends Component {
const header = (<Animated.View style={[styles.header, lightboxOpacityStyle]}>{(renderHeader ?
renderHeader(this.close) :
(
<TouchableOpacity onPress={this.close}>
<Text style={styles.closeButton}>×</Text>
</TouchableOpacity>
<SafeAreaView>
<TouchableOpacity onPress={this.close}>
<Text style={styles.closeButton}>×</Text>
</TouchableOpacity>
</SafeAreaView>
)
)}</Animated.View>);
const content = (
Expand Down