mohebifar / mohebifar/react-native-copilot
Layout issue (x-axis offset) on second start
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.4k
- Forks
- 428
- PR merge metrics
- No merged PRs in 30d
Description
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.1react-native: v0.57.8react-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!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file, test, or entry point is named in the report. Start by reproducing the overlay on a second start with the listed React Native and iOS versions, then trace the layout calculation involved in the walkthrough overlay. Done means the overlay has no x-axis offset on subsequent starts.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react-native, typescript
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100