From 737968a527f1b1fe5aa36b890cbcd20245862496 Mon Sep 17 00:00:00 2001 From: yp9522 Date: Wed, 10 Dec 2025 13:54:32 +0800 Subject: [PATCH] fix:Setting useNativeDriver to false causes the pop-up position to shift to the right after the animation ends Signed-off-by: yp9522 --- index.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 09c1806..aedaa70 100644 --- a/index.js +++ b/index.js @@ -481,7 +481,7 @@ export default class ModalBox extends React.PureComponent { height: this.state.containerHeight, width: this.state.containerWidth }; - const offsetX = (this.state.containerWidth - this.state.width) / 2; + // const offsetX = (this.state.containerWidth - this.state.width) / 2; return (