Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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).
Expand Down
14 changes: 7 additions & 7 deletions template/_rnstorybook/main.ts
Original file line number Diff line number Diff line change
@@ -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",
],
};

Expand Down