react-native-unistyles 3.0.0-alpha.16 → 3.0.0-alpha.17
Sign up to get free protection for your applications and to get access to all the features.
- 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