diff --git a/packages/react-native/scripts/generate.js b/packages/react-native/scripts/generate.js index 1022c03419..9652dc0cb0 100644 --- a/packages/react-native/scripts/generate.js +++ b/packages/react-native/scripts/generate.js @@ -68,9 +68,9 @@ function generate({ configPath, absolute = false, useJs = false }) { const fileContent = ` /* do not change this file, it is auto generated by storybook. */ - - import { start, prepareStories, getProjectAnnotations, updateView } from '@storybook/react-native'; - + + import { start, updateView } from '@storybook/react-native'; + ${registerAddons} const normalizedStories = [${normalizedStories.join(',')}]; @@ -80,7 +80,7 @@ function generate({ configPath, absolute = false, useJs = false }) { const annotations = ${annotations}; global.STORIES = normalizedStories; - + // @ts-ignore module?.hot?.accept?.();