Giter Club home page Giter Club logo

reactnative101's Introduction

๐Ÿฅท ReactNative101

๐Ÿ“ˆ React Native 101: A Beginner's Guide for Building Cross-Platform Apps

Welcome to React Native 101, your comprehensive guide to getting started with React Native development! This repository serves as a beginner-friendly resource for those interested in building powerful cross-platform mobile applications using React Native.

In this guide, we'll cover the fundamentals of React Native, including setting up your development environment, understanding the core concepts of React Native, and building your first React Native app from scratch. Whether you're a seasoned JavaScript developer or new to mobile development, this repo will provide you with a solid foundation to start building robust, native-like apps for iOS and Android.

General Files Installation

1) NodeJS : It is the root of any React projects, so make sure you should have installed it in your system.

Recommended : use LTS version for better support. image

2) OpenJDK / JDK : React Native have some dependencies which also includes Java Development kit (JDK).

Recommended JDK version /OpenJDK : 11 ( as per the ReactNative docs )

Link : https://learn.microsoft.com/en-us/java/openjdk/download#openjdk-11 image

Note : Java JDK version and gradle version should match ! ( what is gradle ? will see further)

Here you can check the version compatibility : https://docs.gradle.org/current/userguide/compatibility.html

3) Android Studio : Without Android Studio , your app will not run on the system.

Link: https://developer.android.com/studio image

You may be wondering if there will be any impact on the speed or responsiveness of your system.

Answer is NO ! , we are not going to open Android studio for ReactNative, we will be doing all the programming related to React Native inside our Vscode.

Do this Steps :

This will be the First Screen you will get , just hit more actions and select SDK manager

image

a) SDK Manager:

Inside the SDK Platforms tab , Make sure that Android SDK Platform 34 , Android SDK Platform 33, Google APIs intel x86_64 Atom System image or intel x86_64 Atom System image is selected. image

image

Go to SDK Tools and select the versions : 33.0.0 , 33.0.2 , 30.0.3 image

b) Virtual Device Manager :

Now , there will be 2 preferences : Either you want to use directly the app inside your computer ( using Virtual Device Emulator ) or by attaching the Smartphone( android or IOS ) to the System.

Steps :

  1. Click Create Virtual Device
  2. Select any device accordingly and hit apply. image

OR

Using your smartphone :

Enable USB Debugging : image

image

Environment Variables ( DO IT CAREFULLY )

image

image

image

image

image

YAY ! Done with the Setup .

Installation of React Native

  1. Type this Command on your Command prompt (cmd) or in Vscode Terminal but before that create a folder where you want to create React native apps.

       npx react-native init <yourProjectName>    // dont include <> this brackets.
  2. Install React Native Doctor : This will help you to find and fix the issues related to installation and checking the dependencies.

    npx @react-native-community/cli doctor

    Note : Sometimes gradle doesn't recognise the Java version , so we have to set the jdk path :

    image

  3. To run the React Native Application , simply type : cd <yourProjectName> then run this command : npx react-native run-android

    So , it will build some of its files before actually deploying the app to your smartphone. Once everything is done , it will look like :

    image

๐ŸŽ‰ We finally created our First app using React Native. ๐ŸŽ‰

reactnative101's People

Contributors

yash-devop avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.