Fireship · @fireship
React Native in 100 Seconds
Uploaded September 28, 2021 · Length 2:17
Summary
react native explained in 100 seconds, building ios android and web apps with js and react
- react native
- cross platform development
- mobile app development
- javascript
- react
Transcript preview
The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.
- 0:00
react native write javascript and react
- 0:02
to build apps for ios android and the
- 0:05
web from a single codebase according to
- 0:07
atwood's law any application that can be
- 0:09
written in javascript will eventually be
- 0:11
written in javascript the first way js
- 0:13
developers tried to build mobile apps
- 0:15
was by wrapping their native
- 0:16
applications in a sandbox browser called
- 0:18
a webview using tools like apache
- 0:20
cordova and adobe phonegap the
- 0:22
philosophy is right once run anywhere
- 0:25
this works but it can be hard to make a
- 0:26
website feel like a true native
- 0:28
experience react native takes a
- 0:30
different approach it feels just like
- 0:32
react dom for the web but instead of
- 0:34
using html and the dom as building
- 0:36
blocks for the ui it uses the native
- 0:38
components that you would find on ios
- 0:40
and android the philosophy is learn once
- 0:43
right anywhere you can't just take your
- 0:44
existing react web app and upload it to
- 0:46
the app store but you can use the react
- 0:48
skills you already have to build a
- 0:50
native app without ever having to touch
- 0:52
java or objective c instead you import
- 0:54
building block components like button
- 0:56
switch scroll view and the most
- 0:58
fundamental of which is view at runtime
- 1:01
it will use the true native component on
- 1:03
the corresponding platform like uiview
- 1:05
android.view or div on the web it's like
- 1:08
building three apps for the price of one
- 1:10
but in some cases you may want a
- 1:12
different visual experience based on the
- 1:13
underlying os the platform module allows
- 1:16
you to check which platform you're on
- 1:18
and render different components
- 1:19
accordingly when it comes to visuals
- 1:21
there's no css in react native instead
- 1:23
every core component takes a style prop
- 1:26
that can be customized with a style
- 1:27
sheet constructed from javascript in
- 1:29
development it supports fast refresh
- 1:32
which means you can instantly see the
- 1:33
changes you make to your code on any
- 1:35
platform you may also want to tap into
- 1:37
native features like the device camera
- 1:39
push notifications and geolocation these
- 1:41
concerns are handled by one of the most
- 1:43
active open source communities on github
- 1:45
there's open source packages for almost
- 1:47
everything that can be installed with
- 1:48
npm just like any other javascript
- 1:50
project and there's frameworks like expo
- 1:52
that build on top of react native
- 1:54
primitives to provide all the tooling
- 1:55
required to ship your app to production
- 1:57
you can use react native to build a
- 1:59
complete mobile app or integrate it with


