Skip to content

Commit 3a8cf1e

Browse files
committed
Fix toggling close button for iPhone X
1 parent c814bca commit 3a8cf1e

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/ImageView.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -705,7 +705,7 @@ export default class ImageView extends Component<PropsType, StateType> {
705705
this.setState({panelsVisible});
706706

707707
Animated.timing(this.headerTranslateValue.y, {
708-
toValue: !panelsVisible ? -HEADER_HEIGHT : 0,
708+
toValue: !panelsVisible ? -(HEADER_HEIGHT + 44) : 0,
709709
duration: 200,
710710
useNativeDriver: true,
711711
}).start();
@@ -745,7 +745,9 @@ export default class ImageView extends Component<PropsType, StateType> {
745745
onLoad={(): void => this.onImageLoaded(index)}
746746
{...this.panResponder.panHandlers}
747747
/>
748-
{!loaded && image.height === undefined && <ActivityIndicator style={styles.loading} />}
748+
{!loaded && image.height === undefined && (
749+
<ActivityIndicator style={styles.loading} />
750+
)}
749751
</View>
750752
);
751753
};

0 commit comments

Comments
 (0)