React Native

React Native is a framework for building native mobile applications using React. It allows developers to create mobile apps that can run on both iOS and Android using a single codebase, with native performance and look-and-feel.

Create React Native App

React Native

Create a new React Native application

npx react-native@latest init MyApp

React Native Development Server

React Native

Start the React Native Metro bundler

npx react-native start

React Native Run Android

React Native

Run the React Native app on an Android device or emulator

npx react-native run-android

React Native Run iOS

React Native

Run the React Native app on an iOS simulator

npx react-native run-ios

React Native Build Android

React Native

Build React Native app for Android production

cd android && ./gradlew assembleRelease

React Native Build iOS

React Native

Build React Native app for iOS production

cd ios && xcodebuild -workspace MyApp.xcworkspace -scheme MyApp -configuration Release

React Native Link

React Native

Link native dependencies

npx react-native link

React Native Clean

React Native

Clean build files for both Android and iOS

cd android && ./gradlew clean && cd ../ios && xcodebuild clean

React Native Pod Install

React Native

Install CocoaPods dependencies for iOS

cd ios && pod install