react-native-svg: Device crashes when is too wide

Bug

Device crashes when <Svg> is too wide

Unexpected behavior

<Svg width="21489" >

Above code crashes using Expo on my Nokia 9 PureView.

Works fine on iPhone simulator.

Best, Andy

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 22

Most upvoted comments

I really do not think I have enough knowledge about the underlying structures to suggest a Pull Request. But this should be handled in a more gracefull way. I almost consider this one useless as is. And really, I know you can blame Android for their poor implementation, but also errors can be handled in this project but not in projects using this project.

A pr is a pull request, i.e. a request to merge a proposed fix for the issue. I don’t think it makes sense to render anything at all if the request memory is unavailable. Logging an error of some sort probably makes sense, ideally some catchable error event such that the author can decide how to handle that there is not enough memory on the device.