react-native-unistyles 3.0.0-nightly-20250320 → 3.0.0-nightly-20250324

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/plugin/index.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-unistyles",
3
- "version": "3.0.0-nightly-20250320",
3
+ "version": "3.0.0-nightly-20250324",
4
4
  "description": "Level up your React Native StyleSheet",
5
5
  "scripts": {
6
6
  "test": "jest",
package/plugin/index.js CHANGED
@@ -778,7 +778,7 @@ function index_default() {
778
778
  }
779
779
  state.file.hasAnyUnistyle = true;
780
780
  addStyleSheetTag(path, state);
781
- const arg = path.node.arguments[0];
781
+ const arg = t6.isAssignmentExpression(path.node.arguments[0]) ? path.node.arguments[0].right : path.node.arguments[0];
782
782
  if (t6.isObjectExpression(arg)) {
783
783
  const detectedDependencies = getStylesDependenciesFromObject(path);
784
784
  if (detectedDependencies) {