Skip to content

Commit be8b144

Browse files
author
alvaromb
committed
closes #1
Solves flickering issue under iOS
1 parent ac2867e commit be8b144

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

lib/ImageBrowser.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@
22

33
import React from 'react'
44
import PropTypes from 'prop-types'
5-
import { Modal, Animated, StyleSheet, SafeAreaView } from 'react-native'
5+
import {
6+
Modal,
7+
Platform,
8+
Animated,
9+
StyleSheet,
10+
SafeAreaView
11+
} from 'react-native'
612
import ImageListContainer from './ImageListContainer'
713
import ImageViewer from './ImageViewer'
814

@@ -104,7 +110,7 @@ class ImageBrowser extends React.Component<Props, State> {
104110
<Modal
105111
visible={true}
106112
transparent={true}
107-
animationType='fade'
113+
animationType={Platform.OS === 'ios' ? 'none' : 'fade'}
108114
onRequestClose={this.closeImageViewer}
109115
>
110116
<ImageViewer

0 commit comments

Comments
 (0)