From 4181d170cba753abb98b11460423da29602db70d Mon Sep 17 00:00:00 2001 From: Zyie <24736175+Zyie@users.noreply.github.com> Date: Mon, 20 Oct 2025 13:19:13 +0100 Subject: [PATCH] fix: gap style types Updates the type definitions for `rowGap`, `columnGap`, and `gap` properties to `NumberValue`. This change broadens the acceptable input values, enabling more flexible and robust styling configurations for spacing. --- src/core/style/yogaStyles.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/style/yogaStyles.ts b/src/core/style/yogaStyles.ts index 7588c52..a632080 100644 --- a/src/core/style/yogaStyles.ts +++ b/src/core/style/yogaStyles.ts @@ -109,13 +109,13 @@ export interface YogaStyles { flexDirection?: 'row' | 'column' | 'row-reverse' | 'column-reverse'; /** Space between rows in pixels */ - rowGap?: number; + rowGap?: NumberValue; /** Space between both rows and columns in pixels */ - gap?: number; + gap?: NumberValue; /** Space between columns in pixels */ - columnGap?: number; + columnGap?: NumberValue; /** * Growth factor relative to other flex items