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.
- package/package.json +1 -1
- package/src/engine.ts +3 -2
package/package.json
CHANGED
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
|
|
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);
|