File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -228,6 +228,7 @@ const ModalizeBase = (
228
228
229
229
let toValue = 0 ;
230
230
let toPanValue = 0 ;
231
+ let newPosition ;
231
232
232
233
if ( dest === 'top' ) {
233
234
toValue = 0 ;
@@ -251,9 +252,9 @@ const ModalizeBase = (
251
252
setShowContent ( true ) ;
252
253
253
254
if ( ( alwaysOpenValue && dest !== 'top' ) || ( snapPoint && dest === 'default' ) ) {
254
- setModalPosition ( 'initial' ) ;
255
+ newPosition = 'initial' ;
255
256
} else {
256
- setModalPosition ( 'top' ) ;
257
+ newPosition = 'top' ;
257
258
}
258
259
259
260
Animated . parallel ( [
@@ -290,8 +291,10 @@ const ModalizeBase = (
290
291
onOpened ( ) ;
291
292
}
292
293
294
+ setModalPosition ( newPosition ) ;
295
+
293
296
if ( onPositionChange ) {
294
- onPositionChange ( modalPosition ) ;
297
+ onPositionChange ( newPosition ) ;
295
298
}
296
299
} ) ;
297
300
} ;
You can’t perform that action at this time.
0 commit comments