exodeui-react-native 1.0.9 → 1.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/engine.ts +3 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "exodeui-react-native",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "React Native runtime for ExodeUI animations",
5
5
  "main": "index.js",
6
6
  "files": [
package/src/engine.ts CHANGED
@@ -2217,8 +2217,9 @@ export class ExodeUIEngine {
2217
2217
  const path = Skia.Path.Make();
2218
2218
  if (geometry.type === 'Rectangle') {
2219
2219
  const rect = { x: -w/2, y: -h/2, width: w, height: h };
2220
- if (state.cornerRadius || geometry.corner_radius) {
2221
- const cr = state.cornerRadius || geometry.corner_radius;
2220
+ if (state.cornerRadius !== undefined || geometry.corner_radius !== undefined) {
2221
+ const rawCr = state.cornerRadius ?? geometry.corner_radius;
2222
+ const cr = Array.isArray(rawCr) ? rawCr[0] : Number(rawCr);
2222
2223
  path.addRRect(Skia.RRectXY(rect, cr, cr));
2223
2224
  } else {
2224
2225
  path.addRect(rect);