@storybook/react-native 8.3.0-alpha.2 → 8.3.1-alpha.0

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.
package/babel.config.js CHANGED
@@ -1,3 +1,4 @@
1
+ // note this file is used by jest to make it not shit itself
1
2
  module.exports = {
2
3
  presets: ['module:metro-react-native-babel-preset'],
3
4
  };
package/dist/index.js CHANGED
@@ -40,11 +40,11 @@ module.exports = __toCommonJS(src_exports);
40
40
  var import_react_native_theming3 = require("@storybook/react-native-theming");
41
41
 
42
42
  // src/Start.tsx
43
+ var import_react_native4 = require("react-native");
43
44
  var import_manager_api2 = require("@storybook/core/manager-api");
44
45
  var import_preview_api2 = require("@storybook/core/preview-api");
45
46
  var import_csf2 = require("@storybook/csf");
46
47
  var import_channels2 = require("@storybook/core/channels");
47
- var import_react_native4 = require("react-native");
48
48
 
49
49
  // src/View.tsx
50
50
  var import_bottom_sheet = require("@gorhom/bottom-sheet");
@@ -1047,13 +1047,17 @@ var View3 = class {
1047
1047
 
1048
1048
  // src/Start.tsx
1049
1049
  var import_jsx_runtime4 = require("react/jsx-runtime");
1050
- if (!URLSearchParams.get) {
1051
- const { setupURLPolyfill } = require("react-native-url-polyfill");
1052
- setupURLPolyfill();
1050
+ if (import_react_native4.Platform.OS !== "web") {
1051
+ try {
1052
+ let params = new URLSearchParams({ test: "1" });
1053
+ params.get("test");
1054
+ } catch {
1055
+ const { setupURLPolyfill } = require("react-native-url-polyfill");
1056
+ setupURLPolyfill();
1057
+ }
1053
1058
  }
1054
1059
  if (import_react_native4.Platform.OS === "web" && typeof globalThis.setImmediate === "undefined") {
1055
- globalThis.setImmediate = () => {
1056
- };
1060
+ require("setimmediate");
1057
1061
  }
1058
1062
  function prepareStories({
1059
1063
  storyEntries,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/react-native",
3
- "version": "8.3.0-alpha.2",
3
+ "version": "8.3.1-alpha.0",
4
4
  "description": "A better way to develop React Native Components for your app",
5
5
  "keywords": [
6
6
  "react",
@@ -43,8 +43,8 @@
43
43
  "@storybook/csf": "^0.1.1",
44
44
  "@storybook/global": "^5.0.0",
45
45
  "@storybook/react": "^8.3.1",
46
- "@storybook/react-native-theming": "^8.3.0-alpha.2",
47
- "@storybook/react-native-ui": "^8.3.0-alpha.2",
46
+ "@storybook/react-native-theming": "^8.3.1-alpha.0",
47
+ "@storybook/react-native-ui": "^8.3.1-alpha.0",
48
48
  "chokidar": "^3.5.1",
49
49
  "commander": "^8.2.0",
50
50
  "dedent": "^1.5.1",
@@ -53,6 +53,7 @@
53
53
  "prettier": "^2.4.1",
54
54
  "react-native-swipe-gestures": "^1.0.5",
55
55
  "react-native-url-polyfill": "^2.0.0",
56
+ "setimmediate": "^1.0.5",
56
57
  "type-fest": "~2.19",
57
58
  "util": "^0.12.4",
58
59
  "ws": "^8.18.0"
@@ -80,5 +81,5 @@
80
81
  "publishConfig": {
81
82
  "access": "public"
82
83
  },
83
- "gitHead": "afcce3fd6cfd6625afaddb06527c377449300d6d"
84
+ "gitHead": "bddc79632c24901e83c61b063a46f05e528918a5"
84
85
  }