@storybook/react-native 10.2.2-alpha.2 → 10.2.2-alpha.3

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.
@@ -557,7 +557,8 @@ function withStorybook(config, options = {
557
557
  };
558
558
  }
559
559
  const resolved = resolveFunction(context, moduleName, platform);
560
- if (resolved.filePath?.includes?.(`${configPath}/index.tsx`)) {
560
+ const configIndexRegex = new RegExp(`${configPath}/index\\.(tsx?|jsx?)$`);
561
+ if (resolved.filePath && configIndexRegex.test(resolved.filePath)) {
561
562
  return {
562
563
  filePath: path2.resolve(__dirname, "../stub.js"),
563
564
  type: "sourceFile"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/react-native",
3
- "version": "10.2.2-alpha.2",
3
+ "version": "10.2.2-alpha.3",
4
4
  "description": "A better way to develop React Native Components for your app",
5
5
  "keywords": [
6
6
  "react",
@@ -51,9 +51,9 @@
51
51
  },
52
52
  "dependencies": {
53
53
  "@storybook/react": "^10.2.2",
54
- "@storybook/react-native-theming": "^10.2.2-alpha.2",
55
- "@storybook/react-native-ui": "^10.2.2-alpha.2",
56
- "@storybook/react-native-ui-common": "^10.2.2-alpha.2",
54
+ "@storybook/react-native-theming": "^10.2.2-alpha.3",
55
+ "@storybook/react-native-ui": "^10.2.2-alpha.3",
56
+ "@storybook/react-native-ui-common": "^10.2.2-alpha.3",
57
57
  "commander": "^14.0.2",
58
58
  "dedent": "^1.7.0",
59
59
  "deepmerge": "^4.3.1",
@@ -107,5 +107,5 @@
107
107
  "publishConfig": {
108
108
  "access": "public"
109
109
  },
110
- "gitHead": "af294af11927af3754f6958f0f6f2a358897f7b9"
110
+ "gitHead": "b996f5156b78ae94b967434130a6af1bee2876a2"
111
111
  }