Skip to content

1px vertical missing overlay #339

@ajouve

Description

@ajouve

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.3
  • react-native: 0.75.2
  • react-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

signal-2025-01-13-102637_002

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions