Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1px vertical missing overlay #339

Open
ajouve opened this issue Jan 14, 2025 · 0 comments
Open

1px vertical missing overlay #339

ajouve opened this issue Jan 14, 2025 · 0 comments

Comments

@ajouve
Copy link
Contributor

ajouve commented Jan 14, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant