react-native-art / art

React Native module that allows you to draw vector graphics.
https://github.com/react-native-community/art
MIT License
287 stars 78 forks source link

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

Open petrvmakarov opened 3 years ago

petrvmakarov commented 3 years ago

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

cayasso commented 3 years ago

Having the exact same issue!

Sbarcenas commented 3 years ago

Me too have this issue, from xcode 12

ManBuTianYa commented 3 years ago

Have you solved this problem?

naishadh-hyperspace commented 3 years ago

Any solution for this? I am getting this exception after updating Xcode 12.4

choipd commented 3 years ago

My solution was applying #70 Good luck!