React Native Storybook Minimum Viable Product(MVP, 最小可行產品) Testing。
This repository records my integrating react-native-storybook process.
First, you need a React Native Project. If you have, please skip the step.
首先需要一個 React Native 專案。如果已經有現有專案,可以略過此步驟。
CreateReactNativeProject.md
Next step is refer to ReactNativeStorybook manual setup.
接下來的流程是參考自 ReactNativeStorybook 手動安裝文件。
InstallReactNativeStorybook.md
Use element In App.tsx
import {StorybookUIRoot} from './.storybook/Storybook';
function App(): JSX.Element {
return <StorybookUIRoot />;
}
Execute command to update Sotrybook
yarn sb-rn-get-stories
- How can I do when I see the error 'Error loading story index'?
Need reset cache.
yarn start -- --reset-cache