From 1f09e4aa7adeb7f04081864d91fbf27c427a806d Mon Sep 17 00:00:00 2001 From: Jacek Pudysz Date: Sat, 14 Dec 2024 19:17:55 +0100 Subject: [PATCH] fix: mergin exotic styles with unistyles --- cxx/parser/Parser.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/cxx/parser/Parser.cpp b/cxx/parser/Parser.cpp index b526d3de..c068ed0e 100644 --- a/cxx/parser/Parser.cpp +++ b/cxx/parser/Parser.cpp @@ -168,15 +168,17 @@ void parser::Parser::parseUnistyles(jsi::Runtime& rt, std::shared_ptr unistyleData) { if (unistyleData->unistyle->styleKey == helpers::EXOTIC_STYLE_KEY) { + unistyleData->parsedStyle = std::move(unistyleData->unistyle->rawValue); + return; } - + if (unistyleData->unistyle->type == UnistyleType::Object) { unistyleData->parsedStyle = this->parseFirstLevel(rt, unistyleData->unistyle, unistyleData->variants); - + return; } - + // for functions we need to call them with memoized arguments auto unistyleFn = std::dynamic_pointer_cast(unistyleData->unistyle);