React Native mobile application with Storybook integration for component development and testing.
-
Install dependencies
yarn install
-
Run the app
# Start the development server yarn start # Run on specific platform yarn ios yarn android yarn web
-
Storybook Development
# Start Storybook yarn storybook # Run Storybook on specific platform yarn storybook:ios yarn storybook:android
Access Storybook at
http://localhost:8081when running in web mode.
- React Native - Cross-platform mobile development
- Expo - Development platform and tools
- Expo Router - File-based routing
- Storybook - Component development and testing
- TypeScript - Type safety
- Yarn - Package management
├── app/ # App screens and routing
├── components/ # Reusable components
│ ├── ui/ # UI components
│ └── *.stories.jsx # Storybook stories
├── assets/ # Images, fonts, etc.
├── constants/ # App constants
├── hooks/ # Custom hooks
└── .storybook/ # Storybook configuration
yarn start- Start the Expo development serveryarn ios- Run on iOS simulatoryarn android- Run on Android emulatoryarn web- Run in web browseryarn storybook- Start Storybookyarn storybook:ios- Run Storybook on iOSyarn storybook:android- Run Storybook on Androidyarn storybook-generate- Generate Storybook stories index
- Create your component in the
components/directory - Add a corresponding
.stories.jsxfile for Storybook - Export your component and stories following existing patterns
Storybook is configured to automatically discover stories in the components/ directory with the pattern **/*.stories.?(ts|tsx|js|jsx).
To create a new story:
import { YourComponent } from './YourComponent';
const meta = {
title: 'Components/YourComponent',
component: YourComponent,
};
export default meta;
export const Default = {
args: {
// component props
},
};- Create a feature branch
- Make your changes
- Add/update Storybook stories for new components
- Test on multiple platforms
- Submit a pull request
MIT License - see LICENSE file for details.