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.
@@ -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 && !selectedVariant.has_value()) {
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
@@ -1,3 +1,4 @@
1
1
  #pragma once
2
2
 
3
+ #import "jsi/jsi.h"
3
4
  #import <React/RCTUtils.h>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-unistyles",
3
- "version": "3.0.0-alpha.16",
3
+ "version": "3.0.0-alpha.17",
4
4
  "description": "Level up your React Native StyleSheet",
5
5
  "scripts": {
6
6
  "test": "jest",