react-native-copilot
react-native-copilot copied to clipboard
Layout issue (x-axis offset) on second start
Current Behavior When copilot is started, skipped and started a second time, the overlay seems offset on the x-axis. First time around everything is fine, just on the runs thereafter. I already tried several things, like layout/nest the 'walkthroughable' view differently, delay start, relative/absolute positioning, svg- vs. view-overlay, animated on/off...
Expected behavior/code No layout issues on subsequent starts of copilot.
Environment
- Device: iPhone XR & 5s (Simulator), iPhone XR (Device)
- OS: iOS12
-
react-native-copilot
: v2.4.1 -
react-native
: v0.57.8 -
react-native-svg
: v6.5.2 initially, then upgraded to v9.2.4
Possible Solution Maybe a way to force recalculate/layout the modal dialog, or be able to manipulate the x-offset (like there's for y). As mentioned -- on the 'initial' calculations, the origins of the affected views are calculated correctly. Only on subsequent loads it's off.
Additional context/Screenshots
First run...
Subsequent run...
Thank you!
Any progress on this?