-
-
Notifications
You must be signed in to change notification settings - Fork 432
Open
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
Metadata
Metadata
Assignees
Labels
No labels