mirror of
https://github.com/zoriya/react-native-svg.git
synced 2025-12-05 22:56:11 +00:00
fix: crop rect invalid bounds crash (#2494)
# Summary
Do not crash on `getCropRect` call when renderableBounds is null
## Compatibility
| OS | Implemented |
| ------- | :---------: |
| Android | ✅ |
This commit is contained in:
@@ -27,7 +27,7 @@ class BasicFlood extends Component {
|
||||
floodOpacity="0.5"
|
||||
/>
|
||||
</Filter>
|
||||
<Use href="url(#useless)" filter="url(#floodFilter)" />
|
||||
<Rect x="0" y="0" width="1" height="1" filter="url(#floodFilter)" />
|
||||
</Svg>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user