@storybook/react-native 7.6.7-alpha.1 → 7.6.8-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/dist/V6.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { P as Params, R as ReactNativeFramework } from './View-acca1d49.js';
3
- export { C as ComponentMeta, c as ComponentStory, a as ComponentStoryFn, b as ComponentStoryObj, M as Meta, f as Story, d as StoryFn, S as StoryFnReactReturnType, e as StoryObj } from './View-acca1d49.js';
2
+ import { P as Params, R as ReactNativeFramework } from './View-7a09870e.js';
3
+ export { C as ComponentMeta, c as ComponentStory, a as ComponentStoryFn, b as ComponentStoryObj, M as Meta, f as Story, d as StoryFn, S as StoryFnReactReturnType, e as StoryObj } from './View-7a09870e.js';
4
4
  import { ClientApi } from '@storybook/preview-api';
5
5
  import { b as Addon_StoryApi } from './index.d-82fc9196.js';
6
6
  export { a as ArgTypes, A as Args, P as Parameters, S as StoryContext } from './index.d-82fc9196.js';
package/dist/V6.js CHANGED
@@ -72,16 +72,17 @@ __export(V6_exports, {
72
72
  module.exports = __toCommonJS(V6_exports);
73
73
 
74
74
  // src/StartV6.tsx
75
- var import_channels = require("@storybook/channels");
76
- var import_core_events2 = __toESM(require("@storybook/core-events"));
75
+ var import_channels2 = require("@storybook/channels");
76
+ var import_core_events3 = __toESM(require("@storybook/core-events"));
77
77
  var import_global = require("@storybook/global");
78
78
  var import_manager_api3 = require("@storybook/manager-api");
79
- var import_preview_api = require("@storybook/preview-api");
79
+ var import_preview_api3 = require("@storybook/preview-api");
80
80
  var import_preview_web = require("@storybook/preview-web");
81
81
 
82
82
  // src/View.tsx
83
83
  var import_async_storage = __toESM(require("@react-native-async-storage/async-storage"));
84
84
  var import_csf = require("@storybook/csf");
85
+ var import_preview_api2 = require("@storybook/preview-api");
85
86
  var import_manager_api2 = require("@storybook/manager-api");
86
87
  var import_react_native_theming12 = require("@storybook/react-native-theming");
87
88
  var import_react16 = require("react");
@@ -988,6 +989,7 @@ var findFirstChildStory = (story) => {
988
989
  };
989
990
 
990
991
  // src/components/StoryListView/StoryListView.tsx
992
+ var import_preview_api = require("@storybook/preview-api");
991
993
  var import_jsx_runtime2 = require("react/jsx-runtime");
992
994
  var SectionHeaderText = import_react_native_theming.styled.Text(({ theme: theme3 }) => ({
993
995
  fontSize: theme3.storyList.fontSize,
@@ -1202,7 +1204,8 @@ var StoryListView = ({ storyIndex }) => {
1202
1204
  setData(filterNestedStories(originalData, query));
1203
1205
  };
1204
1206
  const changeStory = (storyId) => {
1205
- global.__STORYBOOK_ADDONS_CHANNEL__.emit(import_core_events.default.SET_CURRENT_STORY, { storyId });
1207
+ const channel = import_preview_api.addons.getChannel();
1208
+ channel.emit(import_core_events.default.SET_CURRENT_STORY, { storyId });
1206
1209
  };
1207
1210
  const renderItem = import_react3.default.useCallback(({ item }) => {
1208
1211
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(RenderItem, { item, changeStory });
@@ -1947,8 +1950,57 @@ var OnDeviceUI = ({
1947
1950
  var OnDeviceUI_default = import_react15.default.memo(OnDeviceUI);
1948
1951
 
1949
1952
  // src/View.tsx
1953
+ var import_channels = require("@storybook/channels");
1954
+ var import_core_events2 = __toESM(require("@storybook/core-events"));
1950
1955
  var import_deepmerge = __toESM(require("deepmerge"));
1951
1956
  var import_react_native16 = require("react-native");
1957
+
1958
+ // src/rn-host-detect.js
1959
+ function getByRemoteConfig(hostname) {
1960
+ var remoteModuleConfig = window?.__fbBatchedBridgeConfig?.remoteModuleConfig;
1961
+ if (!Array.isArray(remoteModuleConfig) || hostname !== "localhost" && hostname !== "127.0.0.1") {
1962
+ return { hostname, passed: false };
1963
+ }
1964
+ var constants = (remoteModuleConfig.find(getConstants) || [])[1];
1965
+ if (constants) {
1966
+ var serverHost = constants.ServerHost || hostname;
1967
+ return { hostname: serverHost.split(":")[0], passed: true };
1968
+ }
1969
+ return { hostname, passed: false };
1970
+ }
1971
+ function getConstants(config) {
1972
+ return config && (config[0] === "AndroidConstants" || config[0] === "PlatformConstants");
1973
+ }
1974
+ function getByRNRequirePolyfill(hostname) {
1975
+ var NativeModules;
1976
+ var PlatformConstants;
1977
+ var AndroidConstants;
1978
+ if (typeof window === "undefined" || !window.__DEV__ || typeof window.require !== "function" || // RN >= 0.56
1979
+ // TODO: Get NativeModules for RN >= 0.56
1980
+ window.require.name === "metroRequire") {
1981
+ return hostname;
1982
+ }
1983
+ NativeModules = window.require("NativeModules");
1984
+ if (!NativeModules || !NativeModules.PlatformConstants && !NativeModules.AndroidConstants) {
1985
+ return hostname;
1986
+ }
1987
+ PlatformConstants = NativeModules.PlatformConstants;
1988
+ AndroidConstants = NativeModules.AndroidConstants;
1989
+ var serverHost = (PlatformConstants ? PlatformConstants.ServerHost : AndroidConstants.ServerHost) || hostname;
1990
+ return serverHost.split(":")[0];
1991
+ }
1992
+ function getHost(hostname) {
1993
+ if (typeof __fbBatchedBridge !== "object" || hostname !== "localhost" && hostname !== "127.0.0.1") {
1994
+ return hostname;
1995
+ }
1996
+ var result = getByRemoteConfig(hostname);
1997
+ if (result.passed) {
1998
+ return result.hostname;
1999
+ }
2000
+ return getByRNRequirePolyfill(hostname);
2001
+ }
2002
+
2003
+ // src/View.tsx
1952
2004
  var import_jsx_runtime16 = require("react/jsx-runtime");
1953
2005
  var STORAGE_KEY = "lastOpenedStory";
1954
2006
  var View10 = class {
@@ -1996,25 +2048,33 @@ var View10 = class {
1996
2048
  }
1997
2049
  return { storySpecifier: "*", viewMode: "story" };
1998
2050
  };
1999
- // _getServerChannel = (params: Partial<Params> = {}) => {
2000
- // const host = getHost(params.host || 'localhost');
2001
- // const port = `:${params.port || 7007}`;
2002
- // const query = params.query || '';
2003
- // const websocketType = params.secured ? 'wss' : 'ws';
2004
- // const url = `${websocketType}://${host}${port}/${query}`;
2005
- // return createWebSocketChannel({
2006
- // url,
2007
- // async: true,
2008
- // onError: async () => {},
2009
- // });
2010
- // };
2051
+ _getServerChannel = (params = {}) => {
2052
+ const host = getHost(params.host || "localhost");
2053
+ const port = `:${params.port || 7007}`;
2054
+ const query = params.query || "";
2055
+ const websocketType = params.secured ? "wss" : "ws";
2056
+ const url = `${websocketType}://${host}${port}/${query}`;
2057
+ return (0, import_channels.createWebSocketChannel)({
2058
+ url,
2059
+ async: true,
2060
+ onError: async () => {
2061
+ }
2062
+ });
2063
+ };
2011
2064
  getStorybookUI = (params = {}) => {
2012
- const {
2013
- shouldPersistSelection = true,
2014
- onDeviceUI = true
2015
- /* enableWebsockets = false */
2016
- } = params;
2065
+ const { shouldPersistSelection = true, onDeviceUI = true, enableWebsockets = false } = params;
2017
2066
  const initialStory = this._getInitialStory(params);
2067
+ if (enableWebsockets) {
2068
+ console.log("websockets enabled");
2069
+ const channel = this._getServerChannel(params);
2070
+ import_manager_api2.addons.setChannel(channel);
2071
+ import_preview_api2.addons.setChannel(channel);
2072
+ this._channel = channel;
2073
+ this._preview.channel = channel;
2074
+ this._preview.setupListeners();
2075
+ channel.emit(import_core_events2.default.CHANNEL_CREATED);
2076
+ this._preview.initializeWithStoryIndex(this._storyIndex);
2077
+ }
2018
2078
  import_manager_api2.addons.loadAddons({
2019
2079
  store: () => ({
2020
2080
  fromId: (id) => this._preview.storyStore.getStoryContext(this._preview.storyStore.fromId(id)),
@@ -2143,10 +2203,10 @@ var render = (args, context) => {
2143
2203
  return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Component, { ...args });
2144
2204
  };
2145
2205
  function start() {
2146
- const channel = new import_channels.Channel({ async: true });
2206
+ const channel = new import_channels2.Channel({ async: true });
2147
2207
  import_manager_api3.addons.setChannel(channel);
2148
- channel.emit(import_core_events2.default.CHANNEL_CREATED);
2149
- const clientApi2 = import_global.global?.__STORYBOOK_CLIENT_API__ || new import_preview_api.ClientApi();
2208
+ channel.emit(import_core_events3.default.CHANNEL_CREATED);
2209
+ const clientApi2 = import_global.global?.__STORYBOOK_CLIENT_API__ || new import_preview_api3.ClientApi();
2150
2210
  const previewView = {
2151
2211
  prepareForStory: () => {
2152
2212
  return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_jsx_runtime17.Fragment, {});
@@ -2188,7 +2248,7 @@ function start() {
2188
2248
  import_global.global.__STORYBOOK_PREVIEW__ = preview;
2189
2249
  import_global.global.__STORYBOOK_STORY_STORE__ = preview.storyStore;
2190
2250
  }
2191
- (0, import_preview_api.setGlobalRender)(render);
2251
+ (0, import_preview_api3.setGlobalRender)(render);
2192
2252
  let initialized = false;
2193
2253
  function onStoriesChanged() {
2194
2254
  const storyIndex = clientApi2.getStoryIndex();
@@ -2198,7 +2258,7 @@ function start() {
2198
2258
  const view2 = new View10(preview, channel);
2199
2259
  return {
2200
2260
  view: view2,
2201
- forceReRender: () => channel.emit(import_core_events2.default.FORCE_RE_RENDER),
2261
+ forceReRender: () => channel.emit(import_core_events3.default.FORCE_RE_RENDER),
2202
2262
  clientApi: clientApi2,
2203
2263
  preview,
2204
2264
  // This gets called each time the user calls configure (i.e. once per HMR)
@@ -122,6 +122,7 @@ declare class View {
122
122
  storySpecifier: string;
123
123
  viewMode: string;
124
124
  }>;
125
+ _getServerChannel: (params?: Partial<Params>) => Channel;
125
126
  getStorybookUI: (params?: Partial<Params>) => () => react_jsx_runtime.JSX.Element;
126
127
  }
127
128
 
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { V as View } from './View-acca1d49.js';
2
- export { C as ComponentMeta, c as ComponentStory, a as ComponentStoryFn, b as ComponentStoryObj, M as Meta, R as ReactNativeFramework, f as Story, d as StoryFn, S as StoryFnReactReturnType, e as StoryObj } from './View-acca1d49.js';
1
+ import { V as View } from './View-7a09870e.js';
2
+ export { C as ComponentMeta, c as ComponentStory, a as ComponentStoryFn, b as ComponentStoryObj, M as Meta, R as ReactNativeFramework, f as Story, d as StoryFn, S as StoryFnReactReturnType, e as StoryObj } from './View-7a09870e.js';
3
3
  export { Theme, darkTheme, theme } from '@storybook/react-native-theming';
4
4
  import { N as NormalizedStoriesSpecifier } from './index.d-82fc9196.js';
5
5
  export { a as ArgTypes, A as Args, P as Parameters, S as StoryContext } from './index.d-82fc9196.js';
package/dist/index.js CHANGED
@@ -67,14 +67,15 @@ var import_react_native_theming13 = require("@storybook/react-native-theming");
67
67
 
68
68
  // src/Start.tsx
69
69
  var import_csf2 = require("@storybook/csf");
70
- var import_preview_api = require("@storybook/preview-api");
70
+ var import_preview_api3 = require("@storybook/preview-api");
71
71
  var import_manager_api3 = require("@storybook/manager-api");
72
72
  var import_preview_web = require("@storybook/preview-api/dist/preview-web");
73
- var import_channels = require("@storybook/channels");
73
+ var import_channels2 = require("@storybook/channels");
74
74
 
75
75
  // src/View.tsx
76
76
  var import_async_storage = __toESM(require("@react-native-async-storage/async-storage"));
77
77
  var import_csf = require("@storybook/csf");
78
+ var import_preview_api2 = require("@storybook/preview-api");
78
79
  var import_manager_api2 = require("@storybook/manager-api");
79
80
  var import_react_native_theming12 = require("@storybook/react-native-theming");
80
81
  var import_react16 = require("react");
@@ -981,6 +982,7 @@ var findFirstChildStory = (story) => {
981
982
  };
982
983
 
983
984
  // src/components/StoryListView/StoryListView.tsx
985
+ var import_preview_api = require("@storybook/preview-api");
984
986
  var import_jsx_runtime2 = require("react/jsx-runtime");
985
987
  var SectionHeaderText = import_react_native_theming.styled.Text(({ theme: theme3 }) => ({
986
988
  fontSize: theme3.storyList.fontSize,
@@ -1195,7 +1197,8 @@ var StoryListView = ({ storyIndex }) => {
1195
1197
  setData(filterNestedStories(originalData, query));
1196
1198
  };
1197
1199
  const changeStory = (storyId) => {
1198
- global.__STORYBOOK_ADDONS_CHANNEL__.emit(import_core_events.default.SET_CURRENT_STORY, { storyId });
1200
+ const channel = import_preview_api.addons.getChannel();
1201
+ channel.emit(import_core_events.default.SET_CURRENT_STORY, { storyId });
1199
1202
  };
1200
1203
  const renderItem = import_react3.default.useCallback(({ item }) => {
1201
1204
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(RenderItem, { item, changeStory });
@@ -1940,8 +1943,57 @@ var OnDeviceUI = ({
1940
1943
  var OnDeviceUI_default = import_react15.default.memo(OnDeviceUI);
1941
1944
 
1942
1945
  // src/View.tsx
1946
+ var import_channels = require("@storybook/channels");
1947
+ var import_core_events2 = __toESM(require("@storybook/core-events"));
1943
1948
  var import_deepmerge = __toESM(require("deepmerge"));
1944
1949
  var import_react_native16 = require("react-native");
1950
+
1951
+ // src/rn-host-detect.js
1952
+ function getByRemoteConfig(hostname) {
1953
+ var remoteModuleConfig = window?.__fbBatchedBridgeConfig?.remoteModuleConfig;
1954
+ if (!Array.isArray(remoteModuleConfig) || hostname !== "localhost" && hostname !== "127.0.0.1") {
1955
+ return { hostname, passed: false };
1956
+ }
1957
+ var constants = (remoteModuleConfig.find(getConstants) || [])[1];
1958
+ if (constants) {
1959
+ var serverHost = constants.ServerHost || hostname;
1960
+ return { hostname: serverHost.split(":")[0], passed: true };
1961
+ }
1962
+ return { hostname, passed: false };
1963
+ }
1964
+ function getConstants(config) {
1965
+ return config && (config[0] === "AndroidConstants" || config[0] === "PlatformConstants");
1966
+ }
1967
+ function getByRNRequirePolyfill(hostname) {
1968
+ var NativeModules;
1969
+ var PlatformConstants;
1970
+ var AndroidConstants;
1971
+ if (typeof window === "undefined" || !window.__DEV__ || typeof window.require !== "function" || // RN >= 0.56
1972
+ // TODO: Get NativeModules for RN >= 0.56
1973
+ window.require.name === "metroRequire") {
1974
+ return hostname;
1975
+ }
1976
+ NativeModules = window.require("NativeModules");
1977
+ if (!NativeModules || !NativeModules.PlatformConstants && !NativeModules.AndroidConstants) {
1978
+ return hostname;
1979
+ }
1980
+ PlatformConstants = NativeModules.PlatformConstants;
1981
+ AndroidConstants = NativeModules.AndroidConstants;
1982
+ var serverHost = (PlatformConstants ? PlatformConstants.ServerHost : AndroidConstants.ServerHost) || hostname;
1983
+ return serverHost.split(":")[0];
1984
+ }
1985
+ function getHost(hostname) {
1986
+ if (typeof __fbBatchedBridge !== "object" || hostname !== "localhost" && hostname !== "127.0.0.1") {
1987
+ return hostname;
1988
+ }
1989
+ var result = getByRemoteConfig(hostname);
1990
+ if (result.passed) {
1991
+ return result.hostname;
1992
+ }
1993
+ return getByRNRequirePolyfill(hostname);
1994
+ }
1995
+
1996
+ // src/View.tsx
1945
1997
  var import_jsx_runtime16 = require("react/jsx-runtime");
1946
1998
  var STORAGE_KEY = "lastOpenedStory";
1947
1999
  var View10 = class {
@@ -1989,25 +2041,33 @@ var View10 = class {
1989
2041
  }
1990
2042
  return { storySpecifier: "*", viewMode: "story" };
1991
2043
  };
1992
- // _getServerChannel = (params: Partial<Params> = {}) => {
1993
- // const host = getHost(params.host || 'localhost');
1994
- // const port = `:${params.port || 7007}`;
1995
- // const query = params.query || '';
1996
- // const websocketType = params.secured ? 'wss' : 'ws';
1997
- // const url = `${websocketType}://${host}${port}/${query}`;
1998
- // return createWebSocketChannel({
1999
- // url,
2000
- // async: true,
2001
- // onError: async () => {},
2002
- // });
2003
- // };
2044
+ _getServerChannel = (params = {}) => {
2045
+ const host = getHost(params.host || "localhost");
2046
+ const port = `:${params.port || 7007}`;
2047
+ const query = params.query || "";
2048
+ const websocketType = params.secured ? "wss" : "ws";
2049
+ const url = `${websocketType}://${host}${port}/${query}`;
2050
+ return (0, import_channels.createWebSocketChannel)({
2051
+ url,
2052
+ async: true,
2053
+ onError: async () => {
2054
+ }
2055
+ });
2056
+ };
2004
2057
  getStorybookUI = (params = {}) => {
2005
- const {
2006
- shouldPersistSelection = true,
2007
- onDeviceUI = true
2008
- /* enableWebsockets = false */
2009
- } = params;
2058
+ const { shouldPersistSelection = true, onDeviceUI = true, enableWebsockets = false } = params;
2010
2059
  const initialStory = this._getInitialStory(params);
2060
+ if (enableWebsockets) {
2061
+ console.log("websockets enabled");
2062
+ const channel = this._getServerChannel(params);
2063
+ import_manager_api2.addons.setChannel(channel);
2064
+ import_preview_api2.addons.setChannel(channel);
2065
+ this._channel = channel;
2066
+ this._preview.channel = channel;
2067
+ this._preview.setupListeners();
2068
+ channel.emit(import_core_events2.default.CHANNEL_CREATED);
2069
+ this._preview.initializeWithStoryIndex(this._storyIndex);
2070
+ }
2011
2071
  import_manager_api2.addons.loadAddons({
2012
2072
  store: () => ({
2013
2073
  fromId: (id) => this._preview.storyStore.getStoryContext(this._preview.storyStore.fromId(id)),
@@ -2076,7 +2136,7 @@ function prepareStories({
2076
2136
  };
2077
2137
  let importMap = {};
2078
2138
  const makeTitle = (fileName, userTitle) => {
2079
- const title = (0, import_preview_api.userOrAutoTitle)(fileName, storyEntries, userTitle);
2139
+ const title = (0, import_preview_api3.userOrAutoTitle)(fileName, storyEntries, userTitle);
2080
2140
  if (title) {
2081
2141
  return title.replace("./", "");
2082
2142
  } else {
@@ -2136,9 +2196,9 @@ function start({
2136
2196
  storyEntries
2137
2197
  }) {
2138
2198
  const { index, importMap } = prepareStories({ storyEntries });
2139
- const channel = (0, import_channels.createBrowserChannel)({ page: "preview" });
2199
+ const channel = (0, import_channels2.createBrowserChannel)({ page: "preview" });
2140
2200
  import_manager_api3.addons.setChannel(channel);
2141
- import_preview_api.addons.setChannel(channel);
2201
+ import_preview_api3.addons.setChannel(channel);
2142
2202
  const previewView = {
2143
2203
  prepareForStory: () => {
2144
2204
  return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_jsx_runtime17.Fragment, {});
@@ -2179,7 +2239,7 @@ function start({
2179
2239
  global.__STORYBOOK_PREVIEW__ = preview;
2180
2240
  global.__STORYBOOK_STORY_STORE__ = preview.storyStore;
2181
2241
  }
2182
- const getProjectAnnotations = async () => (0, import_preview_api.composeConfigs)([
2242
+ const getProjectAnnotations = async () => (0, import_preview_api3.composeConfigs)([
2183
2243
  {
2184
2244
  renderToCanvas: (context) => {
2185
2245
  view._setStory(context.storyContext);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/react-native",
3
- "version": "7.6.7-alpha.1",
3
+ "version": "7.6.8-alpha.0",
4
4
  "description": "A better way to develop React Native Components for your app",
5
5
  "keywords": [
6
6
  "react",
@@ -51,20 +51,20 @@
51
51
  "preset": "react-native"
52
52
  },
53
53
  "dependencies": {
54
- "@storybook/channel-websocket": "7.6.7",
55
- "@storybook/channels": "7.6.7",
56
- "@storybook/client-logger": "7.6.7",
57
- "@storybook/core-client": "7.6.7",
58
- "@storybook/core-common": "7.6.7",
59
- "@storybook/core-events": "7.6.7",
54
+ "@storybook/channel-websocket": "7.6.8",
55
+ "@storybook/channels": "7.6.8",
56
+ "@storybook/client-logger": "7.6.8",
57
+ "@storybook/core-client": "7.6.8",
58
+ "@storybook/core-common": "7.6.8",
59
+ "@storybook/core-events": "7.6.8",
60
60
  "@storybook/csf": "^0.1.1",
61
- "@storybook/docs-tools": "7.6.7",
61
+ "@storybook/docs-tools": "7.6.8",
62
62
  "@storybook/global": "^5.0.0",
63
- "@storybook/manager-api": "7.6.7",
64
- "@storybook/preview-api": "7.6.7",
65
- "@storybook/preview-web": "7.6.7",
66
- "@storybook/react": "7.6.7",
67
- "@storybook/react-native-theming": "^7.6.7-alpha.1",
63
+ "@storybook/manager-api": "7.6.8",
64
+ "@storybook/preview-api": "7.6.8",
65
+ "@storybook/preview-web": "7.6.8",
66
+ "@storybook/react": "7.6.8",
67
+ "@storybook/react-native-theming": "^7.6.8-alpha.0",
68
68
  "chokidar": "^3.5.1",
69
69
  "commander": "^8.2.0",
70
70
  "deepmerge": "^4.3.0",
@@ -74,7 +74,7 @@
74
74
  "util": "^0.12.4"
75
75
  },
76
76
  "devDependencies": {
77
- "@storybook/types": "7.6.7",
77
+ "@storybook/types": "7.6.8",
78
78
  "@types/jest": "^29.4.3",
79
79
  "@types/react": "~18.2.14",
80
80
  "babel-jest": "^29.4.3",
@@ -97,5 +97,5 @@
97
97
  "publishConfig": {
98
98
  "access": "public"
99
99
  },
100
- "gitHead": "c3d96087dec39160d6998b80b5d6c6d9654a4e68"
100
+ "gitHead": "1fd96da743fbaf0da60d5b1080892c877044d374"
101
101
  }
@@ -24,7 +24,7 @@ import "@storybook/addon-ondevice-actions/register";
24
24
  global.STORIES = normalizedStories;
25
25
 
26
26
  export const view = start({
27
- annotations: [require('./preview'),require("@storybook/react-native/dist/preview"), require('@storybook/addon-actions/dist/preview')],
27
+ annotations: [require('./preview'),require("@storybook/react-native/dist/preview"), require('@storybook/addon-actions/preview')],
28
28
  storyEntries: normalizedStories
29
29
  });
30
30
  "
@@ -54,7 +54,7 @@ import "@storybook/addon-ondevice-actions/register";
54
54
  global.STORIES = normalizedStories;
55
55
 
56
56
  export const view = start({
57
- annotations: [require('./preview'),require("@storybook/react-native/dist/preview"), require('@storybook/addon-actions/dist/preview')],
57
+ annotations: [require('./preview'),require("@storybook/react-native/dist/preview"), require('@storybook/addon-actions/preview')],
58
58
  storyEntries: normalizedStories
59
59
  });
60
60
  "
@@ -84,7 +84,7 @@ import "@storybook/addon-ondevice-actions/register";
84
84
  global.STORIES = normalizedStories;
85
85
 
86
86
  export const view = start({
87
- annotations: [require('./preview'),require("@storybook/react-native/dist/preview"), require('@storybook/addon-actions/dist/preview')],
87
+ annotations: [require('./preview'),require("@storybook/react-native/dist/preview"), require('@storybook/addon-actions/preview')],
88
88
  storyEntries: normalizedStories
89
89
  });
90
90
  "
@@ -114,7 +114,7 @@ import "@storybook/addon-ondevice-actions/register";
114
114
  global.STORIES = normalizedStories;
115
115
 
116
116
  export const view = start({
117
- annotations: [require("@storybook/react-native/dist/preview"), require('@storybook/addon-actions/dist/preview')],
117
+ annotations: [require("@storybook/react-native/dist/preview"), require('@storybook/addon-actions/preview')],
118
118
  storyEntries: normalizedStories
119
119
  });
120
120
  "