react-native-unistyles 3.0.0-nightly-20250214 → 3.0.0-nightly-20250215

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.
@@ -49,7 +49,6 @@ jsi::Value HybridShadowRegistry::link(jsi::Runtime &rt, const jsi::Value &thisVa
49
49
  }
50
50
 
51
51
  auto parser = parser::Parser(this->_unistylesRuntime);
52
- auto parsedStyleSheet = jsi::Value::undefined();
53
52
  std::vector<std::shared_ptr<core::UnistyleData>> unistylesData{};
54
53
 
55
54
  // create unistyleData based on wrappers
@@ -78,9 +77,7 @@ jsi::Value HybridShadowRegistry::link(jsi::Runtime &rt, const jsi::Value &thisVa
78
77
 
79
78
  // before linking we need to check if given unistyle is affected by scoped theme
80
79
  if (scopedTheme.has_value()) {
81
- if (parsedStyleSheet.isUndefined()) {
82
- parsedStyleSheet = parser.getParsedStyleSheetForScopedTheme(rt, unistyle, scopedTheme.value());
83
- }
80
+ auto parsedStyleSheet = parser.getParsedStyleSheetForScopedTheme(rt, unistyle, scopedTheme.value());
84
81
 
85
82
  // if so we need to force update
86
83
  parser.rebuildUnistyleWithScopedTheme(rt, parsedStyleSheet, unistyleData);
@@ -62,10 +62,10 @@ jsi::Value parser::Parser::getParsedStyleSheetForScopedTheme(jsi::Runtime& rt, c
62
62
  .asObject(rt);
63
63
  }
64
64
 
65
- void parser::Parser::rebuildUnistyleWithScopedTheme(jsi::Runtime& rt, jsi::Value& jsScopedTheme, std::shared_ptr<core::UnistyleData> unistyleData) {
66
- auto parsedStyleSheet = jsScopedTheme.isUndefined()
65
+ void parser::Parser::rebuildUnistyleWithScopedTheme(jsi::Runtime& rt, jsi::Value& scopedStyleSheet, std::shared_ptr<core::UnistyleData> unistyleData) {
66
+ auto parsedStyleSheet = scopedStyleSheet.isUndefined()
67
67
  ? this->getParsedStyleSheetForScopedTheme(rt, unistyleData->unistyle, unistyleData->scopedTheme.value())
68
- : jsScopedTheme.asObject(rt);
68
+ : scopedStyleSheet.asObject(rt);
69
69
 
70
70
  if (parsedStyleSheet.isUndefined()) {
71
71
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-unistyles",
3
- "version": "3.0.0-nightly-20250214",
3
+ "version": "3.0.0-nightly-20250215",
4
4
  "description": "Level up your React Native StyleSheet",
5
5
  "scripts": {
6
6
  "test": "jest",
@@ -22,7 +22,7 @@
22
22
  ".": {
23
23
  "types": "./lib/typescript/src/index.d.ts",
24
24
  "module": "./lib/module/index.js",
25
- "react-native": "./src/index",
25
+ "react-native": "./src/index.ts",
26
26
  "default": "./lib/commonjs/index.js"
27
27
  },
28
28
  "./components/native/*": {
@@ -39,7 +39,7 @@
39
39
  "./server": {
40
40
  "types": "./lib/typescript/src/server/index.d.ts",
41
41
  "module": "./lib/module/server/index.js",
42
- "react-native": "./src/server",
42
+ "react-native": "./src/server.ts",
43
43
  "default": "./lib/commonjs/server/index.js"
44
44
  }
45
45
  },