Skip to content

A ready-to-use structured React native project initialized with "Typescript, storybook, react-native-navigation, and jest", to skip the tedious task of installing every dependency needed and dive directly into the fun part, coding

Notifications You must be signed in to change notification settings

Yasser-Belatreche/react-native-typescript-project-setup

Repository files navigation

Getting Started with This React Native Setup Template

This project was bootstrapped with React Native Cli, and edited by me, I add different libraries that I use in every React project, like Typescript, storybook, react-native-navigation, and jest. And I structure the files.
You can clone it and start coding your App immediately.

First

make sure to setup your envirement for react-native app development by following the instructions in the docs. (Stop when you get to the part 'Creating a new application'), after that clone this repo and start your project.

Available Scripts

In the project directory, you can run:

npm install

Install the different needed dependences.

npm start

Runs the metro server locally.

The app will reload if you make edits.
You will also see any lint errors in the console.

npm run android

Runs the App on an android device (make sure that you have an android phone pluged with the laptop, or open an android emulator)

npm run ios

Runs the App on an ios device (make sure that you have an ios phone pluged with the laptop, or open an ios emulator)

npm test

Launches the tests.·
See the section about running tests for more information.

npm run storybook

Runs the storybook and see the components.
Open http://localhost:7007 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

npm run prestorybook

Run this command everytime you create a new story, (it's gonna load the new story file and add it to the stories list).

npm run build-storybook

Output a static Storybook in the storybook-static directory, which can then be deployed to any static site hosting service.

About

A ready-to-use structured React native project initialized with "Typescript, storybook, react-native-navigation, and jest", to skip the tedious task of installing every dependency needed and dive directly into the fun part, coding

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published