diff --git a/README.md b/README.md index f4db7e1..36d7894 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ ![picture of storybook](https://github.com/user-attachments/assets/cf98766d-8b90-44ab-b718-94ab16e63205) -# React Native Storybook Template +# React Native Storybook Template -> The base React Native template with Storybook added on top +> The base React Native template with Storybook added on top ## :star: Features @@ -13,8 +13,9 @@ ## Usage ```sh -npx react-native init MyApp --template react-native-template-storybook +npx @react-native-community/cli init MyApp --template react-native-template-storybook ``` + ## :computer: Contributing Contributions are very welcome. Please check out the [contributing document](CONTRIBUTING.md). diff --git a/template/_rnstorybook/main.ts b/template/_rnstorybook/main.ts index 3963bee..74cfa28 100644 --- a/template/_rnstorybook/main.ts +++ b/template/_rnstorybook/main.ts @@ -1,12 +1,12 @@ -import {StorybookConfig} from '@storybook/react-native'; +import type { StorybookConfig } from "@storybook/react-native"; const main: StorybookConfig = { - stories: ['../components/**/*.stories.?(ts|tsx|js|jsx)'], - addons: [ - '@storybook/addon-ondevice-notes', - '@storybook/addon-ondevice-controls', - '@storybook/addon-ondevice-backgrounds', - '@storybook/addon-ondevice-actions', + stories: ["../components/**/*.stories.?(ts|tsx|js|jsx)"], + addons: [ + "@storybook/addon-ondevice-notes", + "@storybook/addon-ondevice-controls", + "@storybook/addon-ondevice-backgrounds", + "@storybook/addon-ondevice-actions", ], };