mohebifar / mohebifar/react-native-copilot
1px vertical missing overlay
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.4k
- Forks
- 428
- PR merge metrics
- No merged PRs in 30d
Description
Current Behavior
I have a 1px vertical without overlay on the right of the screen
Input Code
- REPL or Repo link if applicable:
function App() {
return (
<CopilotProvider stepNumberComponent={()=>{}} tooltipComponent={TooltipComponent} tooltipStyle={tooltipStyles.container} verticalOffset={StatusBar.currentHeight} backdropColor="rgba(0, 0, 0, 0.6)" svgMaskPath={roundedRectangleSvgPath} >
<Routes />
</CopilotProvider>
);
}
export default App;
const roundedRectangleSvgPath = ({ position, canvasSize, size, step }) => {
const br = step?.name === 'step1' ? 0 : 20; // border radius
const sizeX = size.x._value - 2 * br;
const sizeY = size.y._value - 2 * br;
return `M 0 0 H ${canvasSize.x} V ${canvasSize.y} H 0 V 0 Z M ${position.x._value+br} ${position.y._value} Z h ${sizeX} a ${br} ${br} 0 0 1 ${br} ${br} v ${sizeY} a ${br} ${br} 0 0 1 -${br} ${br} h -${sizeX} a ${br} ${br} 0 0 1 -${br} -${br} v -${sizeY} a ${br} ${br} 0 0 1 ${br} -${br} z`;
}
Expected behavior/code
I should not see this 1px missing overlay
Environment
- Device: andoird (no issue on iOS)
- OS: Android API 34
react-native-copilot: 3.3.2 and 3.3.3react-native: 0.75.2react-native-svg: 15.8.0 and 15.11.1
Possible Solution
With overlay="view" I do not have this issue but the svgMaskPath is not working
Additional context/Screenshots
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
Start with the provided CopilotProvider configuration and custom svgMaskPath, reproducing the issue on Android API 34 with react-native-copilot 3.3.x and react-native-svg. Compare the SVG overlay with overlay="view"; done means the Android overlay has no 1px gap while the custom mask still works.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react-native, typescript
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100