Skip to content

Commit dff3b84

Browse files
committed
Fixed bug with multiple opens using Modal. Fixes #4.
1 parent 391d029 commit dff3b84

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

LightboxOverlay.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,14 @@ var LightboxOverlay = React.createClass({
8686
StatusBarIOS.setHidden(true, 'fade');
8787
}
8888
this.state.pan.setValue(0);
89-
this.setState({ isAnimating: true });
89+
this.setState({
90+
isAnimating: true,
91+
target: {
92+
x: 0,
93+
y: 0,
94+
opacity: 1,
95+
}
96+
});
9097

9198
Animated.spring(
9299
this.state.openVal,

0 commit comments

Comments
 (0)