Cara Install React Native + Full Setup [2024]

Gus Nando
17 Jun 202423:10

Summary

TLDRThis instructional video script guides viewers through the process of installing React Native for app development. It covers the initial setup, including the installation of Node.js, JDK, and the React Native CLI using Chocolatey, a package manager. The script proceeds to explain the installation of Android Studio, emphasizing the SDK and emulator setup. It also touches on configuring environment variables and installing essential tools like Windows Terminal, Git, GitHub, and Visual Studio Code with various extensions to enhance coding efficiency. The tutorial concludes with creating a new React Native project and running it on an Android emulator, providing a comprehensive start-to-end guide for beginners in mobile app development.

Takeaways

  • 😀 Install React Native by visiting reactnative.dev and following the 'Get Started' guide.
  • 🔧 Install Node.js and JDK as prerequisites using a package manager like Chocolatey for easier setup.
  • 📥 Download and install Chocolatey by running commands in PowerShell as an administrator.
  • 💻 Use Chocolatey to install Node.js LTS and Microsoft Open JDK 17 with simple command line instructions.
  • 📱 Install Android Studio to access the SDK and emulator, which are necessary for Android app development.
  • 🛠️ Configure environment variables for Android development by setting 'ANDROID_HOME' to the Android SDK path.
  • 📝 Install Windows Terminal for an enhanced command line experience with better features and customization.
  • 🔄 Download and install Git and GitHub Desktop for version control and collaboration.
  • 💡 Install Visual Studio Code, a popular code editor, and configure it with necessary extensions for development.
  • 🎨 Install themes, icons, and formatting extensions in Visual Studio Code to improve the coding experience.
  • 🚀 Create a new React Native project using the 'npx react-native init' command in the command prompt.

Q & A

  • What is the first step in learning how to install React Native?

    -The first step is to search for 'React Native' on Google and visit the official website at reactnative.dev.

  • Which section on the React Native website should you click to start the installation process?

    -You should click on the 'Get Started' section and then select 'React Native CLI Quickstart'.

  • What are the prerequisites for installing React Native?

    -The prerequisites include installing Node.js, JDK, and a package manager like Chocolatey.

  • Why is Chocolatey recommended for installing Node.js and JDK?

    -Chocolatey simplifies the installation process by allowing you to install software with a single command in the Command Prompt, eliminating the need for manual downloads and installations.

  • How do you install Chocolatey on Windows?

    -You can install Chocolatey by opening PowerShell as an administrator, pasting the installation command provided by the Chocolatey website, and pressing Enter.

  • What is the purpose of installing Android Studio?

    -While not necessary for all React Native development, Android Studio is used to access the Android SDK and emulator, which are needed for testing Android apps.

  • How do you download and install Android Studio?

    -Visit the Android Studio download page, select the appropriate version, and follow the installation prompts. After installation, you can download additional components like the SDK Platform and Build Tools through the SDK Manager.

  • Why is it important to set environment variables for Android development?

    -Setting environment variables like 'ANDROID_HOME' helps the system recognize the location of the Android SDK, which is necessary for running Android-related commands and tools.

  • What is the benefit of using Windows Terminal over the traditional Command Prompt?

    -Windows Terminal offers a more modern interface, better support for multiple tabs, and improved text rendering, making it a more user-friendly option for developers.

  • How do you install Git and GitHub Desktop?

    -Download the Git installer from the official website, run the installer, and follow the prompts. For GitHub Desktop, download the installer and run it to complete the installation.

  • Why is Visual Studio Code recommended for React Native development?

    -Visual Studio Code is a popular and versatile code editor developed by Microsoft, offering extensive support for React Native through extensions and a user-friendly interface.

  • What are some useful extensions for Visual Studio Code in React Native development?

    -Some useful extensions include Atom One Dark theme, Material Icon Theme, Prettier for code formatting, Color Highlight, ES7 React/Redux/GraphQL snippets, and React Native Tools.

  • How do you create a new React Native project?

    -Open the Command Prompt, navigate to the desired directory, and run the command 'npx react-native init <ProjectName>' to create a new project.

  • What is the role of the Android Virtual Device Manager in testing React Native apps?

    -The Android Virtual Device Manager in Android Studio is used to create and manage emulators for testing Android apps, which is essential for React Native app development targeting Android devices.

Outlines

00:00

🛠️ Installing React Native and Prerequisites

This paragraph outlines the process of installing React Native, starting with a search for 'react native' on Google to find the official site. The instructions guide users to follow the 'Get Started' and 'React Native CLI Quick Start' for Windows and Android. It emphasizes the need to install Node.js and JDK first, recommending the use of a package manager called Chocolatey for an easier installation process. The paragraph details the steps to install Chocolatey, Node.js, and OpenJDK using command prompts and the advantages of using Chocolatey for automatic installations without manual downloads.

05:00

📱 Setting Up Android Studio and SDK

The second paragraph focuses on the installation of Android Studio, including downloading it from the official site and going through the installation process. It mentions that only the SDK and emulator are necessary for the React Native setup, not the full Android Studio IDE. The paragraph also covers the installation of SDK Platform 33 and SDK Build Tools 33 through the SDK Manager in Android Studio. It guides users on how to wait for the download and installation of required files for Android Studio and to accept the terms and conditions to proceed.

10:01

💻 Configuring Environment Variables and Installing Windows Terminal

This section explains how to configure environment variables for Android development, including setting the 'ANDROID_HOME' variable to the path of the Android SDK. It details the steps to add this variable through the system properties and how to verify the setup by opening the CMD and typing 'ADB'. The paragraph also introduces the installation of Windows Terminal as an enhanced command-line interface, guiding users through downloading, installing, and customizing the terminal settings for better visibility and usability.

15:03

🔧 Installing Git, GitHub Desktop, and Visual Studio Code

The fourth paragraph covers the installation of Git, GitHub Desktop, and Visual Studio Code. It provides a step-by-step guide for downloading and installing Git, including choosing the components during the installation process. The paragraph also touches on creating a GitHub account or signing in to an existing one through GitHub Desktop. Furthermore, it details the process of downloading and installing Visual Studio Code, a popular code editor by Microsoft, and adjusting its settings for better coding experience.

20:04

🎨 Customizing Visual Studio Code with Extensions

This paragraph discusses enhancing Visual Studio Code's functionality with various extensions. It starts with installing themes like 'Atom One Dark' to customize the editor's appearance. The paragraph continues with the installation of 'Material Icon' for improved file icon visibility. It then moves on to practical extensions such as 'Prettier' for code formatting, 'Color Highlight' for syntax highlighting, and 'Babel JavaScript' for improved JavaScript editing. Additionally, it mentions 'ES7 React/Redux/GraphQL/React-Native snippets' for便捷 code snippets, 'Excel Viewer' for opening Excel files within VS Code, and 'npm Intellisense' and 'Path Intellisense' for better code suggestions and autocompletion.

🚀 Creating a New React Native Project

The final paragraph guides users through creating a new React Native project using the command prompt. It explains the use of 'npx react-native init' to start a new project and how to name it. The paragraph addresses potential errors related to the 'npm' folder and provides a solution by creating a new 'npm' folder and running the command again. It also covers opening the project in Visual Studio Code and running the project on an Android emulator using 'npx react-native run-android'. The paragraph concludes with instructions on launching the emulator manually through Android Studio and observing the project running successfully on the emulator.

Mindmap

Keywords

💡React Native

React Native is a popular framework for building mobile applications using JavaScript and React. It allows developers to create native apps for Android and iOS platforms. In the video, the main theme revolves around installing and setting up React Native, which is a crucial step for developers looking to build cross-platform mobile apps.

💡Chocolatey

Chocolatey is a package manager for Windows that simplifies the installation of software. In the script, Chocolatey is recommended for installing Node.js and JDK, which are prerequisites for React Native development. The video demonstrates how to use Chocolatey to streamline the installation process, making it easier for developers to set up their development environment.

💡Node.js

Node.js is a JavaScript runtime that allows developers to run JavaScript code on the server side. It is essential for React Native development as it provides the necessary environment to run the React Native CLI. The script mentions installing Node.js using Chocolatey, highlighting its importance in setting up a React Native development environment.

💡JDK (Java Development Kit)

The Java Development Kit (JDK) is a software development environment that provides the tools and libraries needed to develop Java applications. In the context of React Native, the JDK is required for Android development. The video script guides viewers on how to install the JDK using Chocolatey, emphasizing its role in the setup process.

💡Android Studio

Android Studio is an integrated development environment (IDE) for Android app development. Although not directly used for React Native development, Android Studio provides the SDK and emulator necessary for testing Android apps built with React Native. The script explains how to download and install Android Studio, focusing on the SDK and emulator components.

💡SDK (Software Development Kit)

A Software Development Kit (SDK) is a set of software tools used to develop applications for a certain software platform. In the video, the Android SDK is mentioned as a component that needs to be installed through Android Studio. The SDK provides the necessary libraries and tools for building and testing Android applications.

💡Environment Variables

Environment variables are dynamic-named values in operating systems, like Windows, that can affect the way running processes behave on a computer. In the script, setting environment variables such as 'ANDROID_HOME' is crucial for configuring the development environment for React Native. The video demonstrates how to set these variables to ensure that the Android SDK and other tools are recognized by the system.

💡Windows Terminal

Windows Terminal is a modern terminal application for users of command-line tools and shells like Command Prompt, PowerShell, and WSL. The video script discusses installing Windows Terminal to provide a more user-friendly interface for command-line operations, which is beneficial for developers working with React Native and other command-line tools.

💡Git

Git is a version control system that allows developers to track changes in their code and collaborate with others. The script mentions installing Git, which is essential for managing code in a development project, especially when working with repositories hosted on platforms like GitHub.

💡Visual Studio Code

Visual Studio Code is a free, open-source code editor developed by Microsoft. It is widely used for coding in various programming languages and supports extensions that enhance its functionality. The video script includes instructions on installing Visual Studio Code and various extensions, highlighting its role as a primary tool for writing and editing code in a React Native project.

💡Extensions

Extensions in the context of Visual Studio Code are additional features or plugins that can be installed to enhance the editor's capabilities. The script discusses installing various extensions such as themes, icons, code formatters, and language support tools. These extensions help improve the coding experience and productivity of developers working with React Native.

Highlights

Introduction to installing React Native by searching on Google and visiting reactnative.dev.

Selecting the 'Get started' and 'React Native CLI Quickstart' options for installation.

Automatic selection of Windows and Android for the installation process.

Installing Node.js and JDK as prerequisites for React Native using a package manager.

Using Chocolatey, a package manager, to simplify the installation process.

Instructions on how to install Chocolatey via Command Prompt.

Using Chocolatey to install Node.js LTS and Microsoft Open JDK 17.

Alternative manual installation methods for Node.js LTS and JDK if Chocolatey is not available.

Installing Android Studio and using only the SDK and emulator.

Downloading and installing Android Studio Hedgehog from the official site.

Configuring the Android SDK with SDK platform 33 and SDK build tools 33.

Setting up environment variables for Android development.

Installation of Windows Terminal for an improved command line experience.

Downloading and installing Git and GitHub Desktop.

Installation of Visual Studio Code and its extensions for coding.

Installing themes, icons, and formatting extensions in Visual Studio Code.

Using extensions like Prettier, Color Highlight, and BBEdit to enhance coding efficiency.

Installation of React Native Tools and other useful extensions for React Native development.

Creating a new React Native project using the command line.

Running the React Native project on an Android emulator.

Transcripts

play00:00

baik pada video kali ini kita akan

play00:01

belajar tentang bagaimana caranya untuk

play00:03

menginstal react native kita cari

play00:06

terlebih dahulu di Google react native

play00:10

nanti akan muncul sebuah situs yang

play00:13

namanya

play00:15

reactnative.dap silakan pilih yang ini

play00:17

kita Klik di bagian get started setelah

play00:21

itu klik yang react native CLI quick

play00:25

start nah ini otomatis terpilih ya kalau

play00:28

kita pakai Windows maka di sini otomatis

play00:30

terpilih Windows dan di sini otomatis

play00:33

Android Oke jadi untuk instal reactnyap

play00:37

kita harus instal terlebih dahulu note

play00:40

JS dan JDK cara yang direkomendasikan

play00:44

oleh R native untuk menginstalnya kita

play00:47

bisa

play00:47

menggunakan sebuah package Manager

play00:51

namanya chocolate chocolate itu apa Jadi

play00:54

tinggal diklik kanan buka link D baru

play00:56

yang ini chocola itu adalah bisa

play00:59

dibangin seperti seperti ini Jadi

play01:00

biasanya teman-teman itu kan kalau

play01:02

download software atau aplikasi itu kan

play01:05

di-download Dul software-nya bentuk XE

play01:07

atau MSI nanti Diklik dua kali baru klik

play01:11

next next next dengan menggunakan

play01:13

cokolate ini kita enggak perlu lakuin

play01:14

hal tersebut cukup jalanin sebuah komen

play01:17

dari comand Prom langsung bisa terinstal

play01:20

Aplikasinya tanpa kita next next lagi

play01:23

cara instalnya itu cukup mudah Scroll ke

play01:26

bawah sini ini yang ini kita Klik yang

play01:29

ini copy ini klik kemudian cari di sini

play01:34

power Cell ini klik Run S

play01:39

administrator pilih yes kemudian Klik

play01:42

Kanan di sini maka dia itu akan ke paste

play01:44

tulisannya seperti ini lalu di-enter

play01:47

kita akan tunggu sampai prosesnya

play01:48

selesai Oke kalau sudah muncul seperti

play01:51

ini maka kita sudah berhasil untuk

play01:52

menginstal cocolate-nya kita close power

play01:56

cell-nya kemudian ini kita close lagi

play01:59

Kemudian ini kita close juga Setelah itu

play02:01

kita bisa menggunakan sebuah komen

play02:04

namanya choko di CMD atau komand Prom

play02:08

Jadi ini akan menginstal sebuah aplikasi

play02:12

namanya node jslts dan Microsoft Open

play02:15

JDK 17 cukup kita klik copy aja ini

play02:19

Setelah itu kita cari CMD kita klik Run

play02:23

as admin di sini kemudian ini pilih yes

play02:27

kemudian pas tekan di sini nah nah kayak

play02:30

begini di-enter nanti dia itu bakal

play02:33

instal dua software ini buat teman-teman

play02:37

yang misalnya enggak bisa instal

play02:40

chocolate bisa download manual

play02:42

software-nya cukup cari nama

play02:44

software-nya di Google misal node jslts

play02:47

di-download diinstal seperti biasa itu

play02:50

pun bisa tapi cara yang direkomendasikan

play02:53

adalah kita instal itu pakai choko ini

play02:56

kalau kita sudah instal pakai choko

play02:57

enggak perlu lagi kita download manual

play02:59

Nanti nantinya jadi itu adalah

play03:01

keunggulannya kalau misal di masa depan

play03:03

ini ada perubahan cukup ikutin aja ya

play03:06

misal instal chokonya lalu tinggal

play03:08

dicopy aja ini sintx yang ada di sini

play03:11

dan itu bakalan berhasil instalnya Oke

play03:15

ini udah berhasil instalnya Setelah itu

play03:17

kita bisa close ini Oke kita sudah

play03:21

berhasil untuk menginstal chocolate note

play03:24

JS dan Open jdk-nya jadi pada video

play03:27

berikutnya kita akan menginstal sebuah

play03:29

aplikasi namanya Android studio enggak

play03:31

usah khawatir kita enggak pakai Android

play03:34

studionya itu langsung kita hanya

play03:35

menggunakan SDK dan emulatornya saja

play03:39

jadi buat teman-teman yang punya PC yang

play03:43

spesifikasinya itu tidak terlalu tinggi

play03:45

enggak usah

play03:48

khawatir pada video kali ini kita akan

play03:51

belajar tentang bagaimana caranya untuk

play03:53

menginstal Android studio jadi tinggal

play03:57

ini dekatkan kursornya ke sini lalu Klik

play04:00

Kanan buka link di Tab baru kita akan

play04:03

diarahkan ke sebuah halaman untuk

play04:05

download Android studionya Nah seperti

play04:07

ini klik download Android studio

play04:10

Hedgehog kita Scroll ke bawah kayak

play04:12

begitu klik ini lalu download ini nanti

play04:16

dia itu akan men-download Android studio

play04:20

oke di sini kita bisa tunggu dulu proses

play04:23

download-nya sampai selesai Oke kalau

play04:26

tampilannya udah seperti ini berarti

play04:28

proses download-nya itu itu sudah

play04:30

selesai tinggal diklik aja kita tunggu

play04:33

sampai installernya itu muncul Nah di

play04:37

sini kita pilih yes silakan pilih next

play04:40

next next install Oke Setelah itu kita

play04:45

pilih next lalu kita finish kemudian ini

play04:48

do not import Oke ini bisa pilih send

play04:53

atau don't bebas ya Oke kalau udah

play04:56

muncul seperti ini kita pilih next lalu

play04:58

kita pilih yang stand

play05:00

next ini klik dulu baru pilih except ini

play05:04

klik lagi pilih except ini diklik pilih

play05:08

accept kemudian difinish di sini Android

play05:12

studio akan m-download beberapa file

play05:14

yang dibutuhkan untuk instalasi Android

play05:17

studionya jadi kita tunggu dulu sebentar

play05:19

sampai prosesnya

play05:23

selesai ini kita pilih

play05:25

yes ini pilih yes lagi oke tinggal

play05:29

difinish aja Setelah itu kita close yang

play05:32

ini ya di chrome-nya Nah setelah itu

play05:35

kita bakalan instal SDK platform 33 dan

play05:40

SDK buil tools 33 yang ini caranya itu

play05:45

gimana Jadi caranya itu kita buka

play05:47

Android studionya yang ini klik more

play05:50

action klik SDK Manager Setelah itu kita

play05:54

pilih yang nomor 33 ini tiramisu Setelah

play05:58

itu kita klik SDK tools kita klik show

play06:01

package detail kita pilih yang tiga-tiga

play06:05

ini di masa depan ini bakalan mungkin

play06:08

sedikit berubah ya Jadi teman-teman

play06:10

silakan disesuaikan lagi setelah itu

play06:14

sesuai versi yang ada di sini nah ini

play06:17

kelihatan nah yang ini Oke Setelah itu

play06:20

kita apply baru dioke setelah itu

play06:24

silakan

play06:24

difinish lalu ini tinggal kita oke aja

play06:27

oke terakhir kita kita

play06:30

bisa close dulu ya aplikasinya Oke kita

play06:33

sudah berhasil untuk menginstal Android

play06:37

studio baik pada video kali ini kita

play06:40

akan

play06:40

mengkonfigurasi namanya environment

play06:43

variableel caranya itu gimana Jadi

play06:46

caranya itu silakan Klik di sini cari

play06:50

environment variabel nah yang ini klik

play06:53

ini Klik yang ini Setelah itu kita klik

play06:57

new di sini Nah di variabel name-nya

play07:00

kita akan beri nama Android home nah

play07:03

seperti ini untuk value-nya ini setiap

play07:06

laptop atau PC itu berbeda-beda ya jadi

play07:09

caranya mengisi itu cukup ini copy aja

play07:13

dicopy lalu kita Buka Explorer Klik di

play07:16

sini lalu kita pas tekan pakai ctrl V

play07:21

nah kayak begitu di enter maka di sini

play07:24

akan muncul kayak begini nah ini kita

play07:27

klik lagi kita copy kita copy yang ini

play07:31

lalu kita pastekan di bawahnya nah ini

play07:34

di PC saya namanya itu adalah C user

play07:38

gusnando app data local Android SDK

play07:41

dioke kemudian di sini kita pilih new

play07:44

lagi di bawahnya pas tekan value-nya

play07:46

dulu kita akan beri nama sama ya

play07:49

Android home kayak begitu oke nah

play07:53

sekarang kita akan ini Ya kita akan

play07:56

menambahkan platform toolsnya juga sama

play07:59

seperti tadi tinggal kita copy aja lalu

play08:02

dipastekan di sini kayak begitu Nah di

play08:05

sini tinggal kita copy aja

play08:08

copy lalu di sini kita cari namanya ini

play08:13

pet klik dua kali new pas tekan oke oke

play08:18

di sini juga pet new pas Tekan lalu oke

play08:23

oke Ini dioke lagi Oke sip ini kita

play08:27

sudah berhasil untuk setting environment

play08:29

variabelnya untuk memastikan Apakah kita

play08:32

sudah berhasil atau tidak caranya itu

play08:34

caranya itu cukup gampang kita buka CMD

play08:37

di sini ketik ADB kalau teman-teman

play08:40

muncul seperti ini seperti yang saya

play08:43

seperti tampilan yang ada di sini maka

play08:45

dia itu sudah berhasil untuk kita

play08:48

nambahin ke environment variabelnya

play08:53

Oke pada video kali ini kita akan

play08:54

belajar tentang bagaimana caranya untuk

play08:56

menginstal namanya Windows terminal

play09:00

jadi kalau kita buka CMD di sini

play09:02

tampilannya itu masih bawaan dari

play09:04

cmd-nya seperti ini ini enggak masalah

play09:06

digunakan Tetapi saya lebih suka

play09:08

menggunakan namanya Windows terminal

play09:11

jadi kita bisa cari di sini Windows

play09:14

Terminal Nah di sini ada ya muncul

play09:17

Windows Terminal ini silakan teman-teman

play09:20

unduh terlebih dahulu kita buka ini lalu

play09:24

dia itu akan men-download aplikasinya

play09:26

seperti

play09:27

ini nah Nah ini Udah muncul ya Windows

play09:30

terminalnya seperti ini jadi kita sudah

play09:33

berhasil untuk menginstalnya keunggulan

play09:35

dari Windows Terminal ini kalau misal

play09:38

ada emoticon kayak begini dia itu akan

play09:41

muncul di terminalnya jadi kita bisa

play09:43

lihat lebih mudah gitu dan di sini kita

play09:48

bisa tambah-tambahin Banyak tab

play09:49

sekaligus jadinya kita bisa membantu

play09:51

jadinya bisa membantu proses kita coding

play09:54

nantinya dan di sini kita untuk

play09:57

settingnya klik open setting di sini

play10:00

kalau misal teman-teman belum muncul

play10:02

tampilan seperti ini teman-teman bisa

play10:05

update terlebih dahulu Windows

play10:06

teman-teman agar muncul tampilan seperti

play10:09

ini karena saya sempat dulu nyoba di

play10:12

Windows yang lama dia itu enggak muncul

play10:15

tampilannya yang ini padahal ini itu

play10:16

penting banget kita klik open setting

play10:19

untuk update windows-nya itu pakai gini

play10:21

ya pakai Windows Update aja nanti dia

play10:23

itu akan ngupdate sendiri setelah itu

play10:26

untuk default profile-nya Saya akan

play10:28

menggunakan C MD aja di sini jadi saya

play10:30

enggak gunakan power Cell defult

play10:32

Terminal application kita bakalan

play10:34

memilih di sini Windows Terminal dan di

play10:37

sini tinggal di-save aja ini tinggal

play10:40

di-save lalu kita tinggal close aja ini

play10:44

Oke untuk membesarkan pontnya

play10:47

teman-teman bisa menggunakan ctrol plus

play10:50

gini ya ctrol plus kayak begitu maka

play10:52

pontnya di sini akan jadi lebih besar

play10:55

jadi lebih mudah untuk dilihat nah

play10:57

kemudian kita bisa menambahkan di sini

play10:59

ini baru seperti itu ya Nah kayak begini

play11:01

kita bisa juga Sama ya besarin kayak

play11:02

begini supaya bisa lebih mudah untuk

play11:05

melihatnya kalau teman-teman suka yang

play11:07

kecil enggak masalah ini lebih ke

play11:10

suka-suka kita gitu kemudian kita kalau

play11:14

udah seperti ini close aja dulu close

play11:17

untuk ngeceknya Apakah ini udah berhasil

play11:20

di-setting klik ini ketik CMD kita buka

play11:25

kalau yang muncul udah Windows Terminal

play11:27

seperti ini maka selamat teman-teman

play11:29

berhasil untuk menginstal Windows

play11:33

Terminal pada video kali ini kita akan

play11:36

belajar tentang bagaimana caranya untuk

play11:38

menginstal Git dan github jadi kita bisa

play11:42

download terlebih dahulu Git Di sini

play11:45

kita download terlebih dahulu kemudian

play11:48

kita klik yang Windows ini kita Klik di

play11:51

sini Setelah itu kita klik aja

play11:55

ini ini pilih yes next next next next

play12:02

ini saya pakai Visual Studio code next

play12:06

next next next next next next next next

play12:11

lagi next next Oke kalau misal sudah

play12:16

selesai kita bisa finish aja di sini

play12:20

satu lagi kita harus instal namanya

play12:23

kitub

play12:24

desktop yang ini kita terlebih dahulu

play12:28

kita

play12:31

Oke kalau sudah muncul seperti ini

play12:32

teman-teman bisa buat akun github baru

play12:34

atau sign

play12:36

in nah ini udah selesai tinggal diclose

play12:39

aja ini juga

play12:44

diclose oke pada video kali ini kita

play12:46

akan belajar tentang bagaimana caranya

play12:48

untuk menginstal Visual Studio code

play12:51

silakan terlebih dahulu close dulu yang

play12:53

ini kita plus di sini cari Visual Studio

play12:58

code Visual Studio code adalah sebuah

play13:00

aplikasi buatan Microsoft yang digunakan

play13:04

untuk menulis kode jadi Visual Studio

play13:07

code ini akan membantu kita untuk

play13:09

menulis kode klik ini download kita

play13:13

tunggu dulu klik ini ini kita accept

play13:16

next next next ini create aja instal

play13:22

jadi teman-teman bisa menggunakan editor

play13:24

yang lain ya jadi code editor itu ada

play13:27

banyak sekali ada misal studio code ada

play13:30

atom ada sublim Tex dan lain-lain tetapi

play13:34

yang kita gunakan di kelas online ini

play13:37

adalah Visual Studio code karena Visual

play13:39

Studio code ini banyak sekali digunakan

play13:41

dan biasanya kalau orang ngeng itu

play13:43

langsung pakai Visual Studio code

play13:45

sebagian besarnya klik finish di sini

play13:48

oke kalau sudah muncul seperti ini kita

play13:50

bisa perbesar terlebih dahulu jadi saya

play13:53

akan perbesar tampilannya dulu ya

play13:54

pakaitrol plus kayak begitu

play14:00

kemudian kita Klik di bagian sini ini

play14:03

done aja Mark done close saja Klik di

play14:07

sini ada namanya extension extension

play14:10

adalah kumpulan plugin yang bisa kita

play14:13

gunakan untuk meningkatkan code editor

play14:16

kita agar lebih canggih kita akan

play14:18

belajar cara instalnya di video

play14:22

selanjutnya baik pada video kali ini

play14:24

kita akan menginstal namanya extension

play14:27

jadi kita akan instal beberapa apa yang

play14:29

pertama kita akan instal tema jadi saya

play14:32

akan menggunakan tema yang baru untuk di

play14:35

Visual Studio code yang ini saya akan

play14:37

instal sebuah tema namanya atom one Duck

play14:41

yang ini klik lalu klik instal nanti

play14:45

akan berubah jadi seperti ini jadi kita

play14:48

akan pilih atom one Duck di sini yang

play14:51

kedua adalah kita akan instal sebuah ion

play14:54

Kita akan menggunakan icon material

play14:58

Icon team ini material icon team Jadi

play15:02

ini akan menambahkan icon di samping

play15:06

nama file kita kita klik

play15:09

install pilih material icon oke udah

play15:13

selesai kemudian kita akan instal

play15:15

extension

play15:17

lain yang pertama adalah pretier

play15:20

pretiier Ini adalah sebuah extension

play15:23

yang digunakan untuk memformat kode kita

play15:26

supaya rapi jadi kita akan instal

play15:29

Kemudian untuk setting-nya kita bisa

play15:31

pilih file Kemudian

play15:34

preference Kemudian setting kita akan

play15:37

cari di sini format

play15:40

onsap nah ini silakan Ini dicentang jadi

play15:44

ketika kita menekan shift atau Ctrl S

play15:48

nantinya maka kode yang kita buat akan

play15:51

otomatis terformat nanti kita akan coba

play15:54

pada video kali ini kita akan

play15:55

instal-instal terlebih dahulu

play15:56

extension-nya

play15:59

kemudian kita akan

play16:00

menginstal color

play16:02

highlight digunakan untuk memberi warna

play16:06

kode warna jadi kalau kita punya kode

play16:08

warna seperti ini maka dia itu otomatis

play16:11

ada warnanya misal Oh ini kode warnanya

play16:13

itu 6699 cc maka dia itu akan jadi warna

play16:17

biru biru kelihatannya Jadi kita itu

play16:20

bisa dengan mudah melihat Warna apa sih

play16:23

kode warna ini kemudian kita akan instal

play16:27

bbel ja ript yang

play16:30

ini kemudian kita akan instal

play16:35

es7 yang ini is7 react redux grabql yang

play16:41

ini snipet jadi ini itu kegunaannya

play16:44

adalah untuk kalau kita misal ngetik ini

play16:47

IMP nanti di keyboard dan tekan Tab atau

play16:50

enter maka akan berubah menjadi kode ini

play16:54

kalau kita ketik ini maka akan berubah

play16:56

menjadi kode ini supaya kita itu bisa

play16:59

lebih cepat untuk menulis kode yang

play17:02

biasa digunakan Setelah itu kita akan

play17:05

menginstal juga

play17:08

Excel

play17:09

viewer JAdi misal di masa depan

play17:12

teman-teman itu berurusan dengan file

play17:15

Excel kita itu kan biasanya buka pakai

play17:18

aplikasi Microsoft Excel atau bisa pakai

play17:21

spreintsheet nah dengan menggunakan

play17:23

extension ini kita bisa buka file Excel

play17:25

di Visual Studio code-nya jadi

play17:29

seperti ini ya Jadi kalau kita buka

play17:31

excel-nya nanti akan muncul

play17:33

tabel-tabelnya langsung nah kayak begini

play17:36

kemudian kita akan instal namanya NPM

play17:40

intelisens yang ini jadi ketika kita

play17:43

mengimpor sesuatu dari node module maka

play17:47

akan mendapatkan suggestion seperti ini

play17:50

jadi memudahkan kita dalam proses import

play17:53

satu lagi ada yang mirip juga namanya

play17:56

pet intellisence

play17:58

[Musik]

play17:59

ini memudahkan kita untuk autoomete file

play18:03

name seperti ini kemudian kita akan

play18:05

instal namanya react native tools jadi

play18:07

react native tools ini dibuat oleh

play18:10

Microsoft langsung extensionnya ini kita

play18:13

instal jadi ini adalah seperangkat tools

play18:16

yang membantu kita untuk ini ya untuk

play18:20

buat aplikasi dengan menggunakan rea

play18:22

native ini kita done aja kemudian kita

play18:27

akan cari lagi yakni tip snipet gitu

play18:32

yang ini yang ini ya diinstal sama

play18:36

seperti yang snipet yang tadi kita

play18:38

instal ini kalau kita ngetik mrrc maka

play18:41

akan berubah menjadi import react

play18:44

komponen seperti ini dan yang lain-lain

play18:46

juga ada kemudian kita akan instal

play18:50

juga

play18:52

simpel react snipet yang ini diinstall

play18:56

kemudian kita akan instal namanya image

play19:00

preview yang ini jadi digunakan untuk

play19:04

kalau kita ini ya kalau kita membuat

play19:07

kode dan kita menggunakan impimport

play19:10

gambar gitu ya nanti akan muncul gambar

play19:12

kita itu seperti apa di sini dan kalau

play19:16

kita dekatin kursornya ke sini Maka akan

play19:17

muncul preview dari foto atau gambarnya

play19:21

oke extension-nya itu aja dulu jadi pada

play19:24

video berikutnya kita akan belajar

play19:25

tentang bagaimana caranya untuk

play19:27

Bagaimana caranya untuk membuat Project

play19:29

react native baru kita bisa close aja

play19:32

dulu di sini ini diclose aja

play19:35

[Musik]

play19:36

dulu baik pada video kali ini kita akan

play19:39

belajar tentang bagaimana caranya untuk

play19:41

membuat Project baru jadi kita akan buka

play19:44

comand Prom di sini seperti ini ya perlu

play19:48

diperhatikan ini ada namanya pad-nya

play19:52

jadi tempat di mana kita itu akan

play19:54

membuat proeknya saya akan membuat

play19:56

proeknya itu di C user Gus ini untuk

play20:00

buka

play20:01

explorernya kita bisa pakai start titik

play20:03

g Nah kita akan buat projectnya itu di

play20:06

sini buat teman-teman yang pengin buat

play20:08

di tempat lain itu enggak masalah tapi

play20:10

kita akan buat dulu di sini dulu ya

play20:12

nanti kita akan belajar caranya gimana

play20:15

ini kita akan ketikkan

play20:17

npx react native kemudian

play20:22

Init kemudian kita akan beri nama nama

play20:26

projectnya misal

play20:29

Project pertama gitu maka di sini akan

play20:32

membuat sebuah folder namanya Project

play20:35

pertama di sini nah kalau misal ada

play20:37

error seperti ini ini dicopy aja ya

play20:41

sampai sini ini copy Klik Kanan dieleksi

play20:44

dulu Klik Kanan Baru pas tekan di sini

play20:47

ini terjadi karena folder npm-nya itu

play20:50

enggak ada gitu biasanya sih enggak

play20:52

muncul error seperti ini caranya itu

play20:54

cukup mudah untuk mengatasi kita buat

play20:56

folder baru beri nama NPM kemudian kita

play21:00

tekan tanda atas di keyboard maka

play21:03

sintaks yang sebelumnya itu akan muncul

play21:05

seperti ini Lalu di enter Nah ini

play21:08

tinggal y enter nanti dia itu akan

play21:11

membuat Project baru di sini di gusnando

play21:15

ini kalau ah muncul seperti ini kita

play21:17

akan pindahkan directorynya ke project

play21:20

pertama kayak begitu kemudian kita

play21:23

bakalan buka terlebih dahulu projectnya

play21:26

di P studio code pakai code T gitu

play21:29

kemudian ini tinggal dicentang aja Yes

play21:33

kemudian di sini untuk menyalakkan

play21:35

projectnya kita bisa menggunakan

play21:37

npx rea native Run Android kayak begitu

play21:43

nah Biasanya kalau kita jalan perintah

play21:45

ini dia itu langsung membuka emulator

play21:47

Android tetapi untuk jaga-jaga kita bisa

play21:51

buka manual aja buka Android studio

play21:55

kemudian teman-teman cari di sini ada

play21:57

namanya Android virtual device manager

play22:01

nah ini kalau misal belum ada di sini

play22:04

bisa pilih Tanda plus di sini silakan

play22:06

buat sendiri ya misal Oh mau yang pixal

play22:10

7 mau yang smartphone bebas jadi saya

play22:14

akan pakai yang ini yang udah ada klik

play22:16

play ini nanti dia itu akan menjalankan

play22:18

emulatornya ini di allow aja Kemudian

play22:21

untuk device manager ini bisa diminimiz

play22:24

aja enggak masalah kita akan tunggu

play22:26

sampai emulator ini itu muncul

play22:30

tampilannya jadi dia itu masih ngidupin

play22:32

emulatornya jadi agak lama untuk pertama

play22:35

kalinya untuk kedua ketiga kalinya itu

play22:37

lebih cepat oke di sini sudah muncul ya

play22:40

emulatornya tinggal kita jalanin aja ini

play22:43

komennya ini di allow aja kayak begitu

play22:46

Nah di sini dia itu masih download ya

play22:49

file-file yang dibutuhkan untuk jalankan

play22:51

projectnya Ini pertama kali emang

play22:53

seperti ini ya Jadi kita akan tunggu

play22:56

terlebih dahulu untuk yang kalau misal

play22:58

sudah kedua ketiga kali itu enggak perlu

play23:00

lagi nunggu seperti ini dia itu langsung

play23:02

jalan projectnya baik kalau sudah muncul

play23:05

seperti ini maka kita sudah berhasil

play23:07

untuk menjalankan proeknya

Rate This

5.0 / 5 (0 votes)

Related Tags
React NativeInstallation GuideDevelopment EnvironmentCoding TutorialSoftware SetupAndroid StudioVisual Studio CodeEnvironment VariablesGit & GitHubWindows Terminal