Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Set a shadow to Shape leads to EXC_BAD_ACCESS exception throwing #76

@petrvmakarov

Description

@petrvmakarov

I have pretty simple Shape in my app — just a rectangle. I'm trying to set a shadow to it. App renders fine without shadow has been set but it crashes when I'm set it to Shape. Please review code snippet below and crash log attached.

const d = 'M 10, 10 h 150 v 50 h -150 z'; 
const shadowProps = {
 shadowOpacity: 1,
  shadowOffset: {
    x: 5, y: 5
  },
  shadowRadius: 5,
  shadowColor: '#000',
};

const App: () => React$Node = () => {
  return (
    <>
      <Surface width={500} height={500}>
        <Group>
          <Shape d={d} stroke="#000" strokeWidth={1} {...shadowProps} />
        </Group>
      </Surface>
    </>
  );
};

Please see crash log file attached.

arttest_2020-11-10-162846_PMaks-MacBook-Pro.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions