react-native-unistyles 3.0.0-alpha.16 → 3.0.0-alpha.17
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/cxx/parser/Parser.cpp +2 -2
- package/ios/Unistyles.h +1 -0
- package/package.json +1 -1
package/cxx/parser/Parser.cpp
CHANGED
@@ -479,8 +479,8 @@ jsi::Value parser::Parser::getStylesForVariant(jsi::Runtime& rt, const std::stri
|
|
479
479
|
: "default";
|
480
480
|
auto hasKey = groupValue.hasProperty(rt, selectedVariantKey);
|
481
481
|
|
482
|
-
if (hasKey
|
483
|
-
// add 'default' selection to variants map
|
482
|
+
if (!hasKey || !selectedVariant.has_value()) {
|
483
|
+
// for no key, add 'default' selection to variants map
|
484
484
|
variants.emplace_back(groupName, selectedVariantKey);
|
485
485
|
}
|
486
486
|
|
package/ios/Unistyles.h
CHANGED