Skip to content

mmsmadi/react-native-starter

Repository files navigation

react-native-starter

This is a documentation to setup and start your first React Native CLI project.

You can see the official documentation on the website

Contents

Requirements

To see the requirements and setup the environment as the official website see the link below:

https://reactnative.dev/docs/environment-setup

Building your first React Native app

After finishing environment setup lets create our first app.

To create react native with javascript template:

npx react-native init myapp

To create react native with typescript template:

npx react-native init myapp --template react-native-template-typescript

This project was created using npx react-native init myapp.

Running the app

Android: npx react-native run-android  or  yarn android

iOS: npx react-native run-ios  or  yarn ios

Folder structure

src
β”‚
└───assets
β”‚   └───fonts
β”‚   └───icons
β”‚   └───images
└───components
β”‚    β”‚   index.js
└───navigation
β”‚    β”‚   index.js
└───screens
β”‚    β”‚   index.js
└───services
β”‚    β”‚   index.js
└───theme
β”‚    β”‚   index.js
└───utils
β”‚    β”‚   index.js

Useful links

Useful libraries

Navigation

Forms

Styling

  • styled-components - Style React and React Native with utilising tagged template literals.
  • emotion - Style as a function of state.
  • react-native-extended-stylesheet - Extend React Native stylesheet with variables, relative units, percents, math operations, scaling and other stuff.

System

Media

Storage

Networking

  • fetch - The Fetch API provides an interface for fetching resources (Build in JavaScript)
  • axios - Promise based HTTP client
  • apisauce - Light-weight and fast HTTP client library that uses Axios

Animation

Utilities

  • upgrade-helper - A web interface to support React Native developers in upgrading their apps. Link to tool
  • rn-diff-purge - The easiest way to upgrade React Native versions. You can find diffs for every React Native version, that are created by diffing the previous version with a newly created app in the new version.
  • react-native-debugger - The standalone app for React Native Debugger, with React DevTools / Redux DevTools
  • sentry-react-native - Sentry's React Native SDK enables automatic reporting of errors and exceptions, and identifies performance issues in your application.
  • generact - CLI that generates components based on existing ones no matter how you structure your app
  • react-native-rename - Rename react-native app with just one command
  • Electrode Native - A platform to ease the integration of React Native components in existing mobile applications.
  • react-native-snippets - A collection of Sublime Text Snippets for react-native
  • react-native-bundle-visualizer - See what's inside your RN bundle; useful for optimizing the bundle size
  • AsyncStorage Dev Menu Item - Adds an option to your dev menu to log the content of your AsyncStorage.
  • rn-nodeify - hack to allow react-native projects to use node core modules
  • react-native-ruler - A devtool for measuring pixel dimensions on your React Native screens
  • BuilderX - A design tool which writes React Native code for you , Desktop Mac app to replace your traditional UX design tools.
  • CodePush - Push code updates to your apps, instantly
  • Storybook - UI development environment for your React components
  • BugSnag - A tool that logs native & JS errors. Has a free tier. Includes useful data about the user, environment, session, release, etc.
  • SimpleLocalize CLI - An open source Localization CLI tool for finding i18n keys in project files.

Dependencies that used in almost every projects

Open Source Apps

Open source React Native apps and other examples.

Tutorials

Walkthroughs and tutorials that help you learn React Native.

Books

Books - free and commercial.

Support

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published