Skip to player
Skip to main content
Skip to footer
Search
Connect
Watch fullscreen
Like
Comments
Bookmark
Share
Add to Playlist
Report
My video test
My channel Paul
Follow
2/18/2025
Category
🥇
Sports
Transcript
Display full video transcript
00:00
So, in this video, I'm going to split this into two videos. In this video, the main purpose
00:06
is to show you how we generate APKs using React Native. But before we get to that, I'd
00:15
like to explain that the iOS and Android folders are created automatically by React Native
00:25
Community CLI. We rarely edit any files there, but we need to be in those directories to
00:35
create an iOS application like now, an App Store application, or an Android APK. So the
00:43
only code we edit is any now JavaScript code. For example, index.js is our entry point,
00:51
and app.js is the first screen that's introduced to the user whenever they open the application.
00:57
You can see it's registered here as AppRegistry.RegisterComponent. AppName is just an import from app.json,
01:05
and app is just this component. So I'm not really sure what you meant by asking where
01:13
you place JavaScript code, but following that direction, I believe this is what you
01:24
wanted to know, but this is the first page rendered when the app is opened, whatever
01:32
is defined here. So we can see inside here, we have a drawer navigator with a component,
01:41
a stack navigator, and the stack navigator has SplashScreen as its initial route name.
01:48
So as we follow that, we'll find out that SplashScreen is the first screen that is opened,
01:55
but whatever is actually rendered is the output of app.js. In the next video, I'll deeply
02:01
explain the code structure of this application, but it's not really different from what you
02:09
had before with Expo. It's just that it's using CLI with the pages or screens placed
02:16
in the screens directory. So when it comes to generating an Android APK, I'll just go
02:23
to our app. This is the directory I've opened in Visual Studio Code, and we have an Android
02:28
directory, and then app, build, outputs, APK, release folder, and we have a release APK
02:38
So first, let me remove that one. To remove any APK you've created, you do gradleo. Sorry,
02:46
you cannot do gradleo here. What you do is you change to the Android directory, and then
02:52
you do .slash gradleo, assemble, release. And what this has done, it's just created
03:10
a new version of this app-release.apk. So you can check 526, you can check here, we
03:19
can check the properties, and it was created at 526. So if we want to remove it, so that
03:32
we start again on a new page, we do .slash gradleo, clean, which will clean that directory,
03:47
and you see in my file explorer, the directory does not exist anymore. So when we want to
03:55
generate now this release APK, we do .slash gradleo, assemble, just like I did last time.
04:06
And it takes quite a while. It will take approximately 10 to, not really 10, maximum
04:19
10 minutes for this type of application. These warnings are normal, they happen. They
04:42
are actually beyond you or me as the developer, they're just part of how React Native works.
04:50
So we don't really care about what we can't really have total control of. So what's happening
05:12
right now is Gradle, the build system is bundling our APK with a lot of, with, not really with,
05:24
but bundling together the different parts that will generate an APK for us.
06:12
Once it completes, now we go back to, so I can just take you from tour app, unread, app, build,
06:30
outputs, APK, release, and we have our release APK. And this is what I usually send to you on
06:42
Apple. You can even see the file size is 72 megabytes. Please allow me to share this today.
06:48
I'm reading for some exams that are happening very early in the morning tomorrow. And then
06:54
after that exam, I'll come in and create this video. No, not this one. I'm not create a separate
07:02
video that is really talking about how the code is structured. But the key points I do want us to
07:11
take from this video is one, you'll have to, you'll have to change directory to Android so that you
07:20
can build an APK. We can skip this part. This one I just did to confirm it's working. I really
07:27
intended to start with Gradle clean. Clean will remove whatever has been generated, whether it's
07:34
a debug, whether it's a release application. We can do Gradle assemble debug, which will generate
07:41
an APK that's not really bundled up well. And the APK will be like 190 megabytes. And I just thought
07:47
that is not really making a lot of sense to send 190 megabytes over the internet while you can send
07:52
72. So clean, clean everything. And then assemble release will assemble a release APK, while
08:00
assemble debug will assemble a debug APK.
Recommended
0:59
|
Up next
golfing
KentOnline / KMTV
11/20/2021
1:00
golfe
Notícias ao Minuto
9/22/2023
2:38
Ladies Golf qualifying
National World - Archive
7/18/2019
5:10
Golf Slang And Terms You Might Not Know
Golf Monthly
6/17/2024
30:29
Upgrade Golf
TyC Sports
5/18/2021
5:00
575159926_mp4_h264_aac_2
My channel Paul
6 days ago
1:36:45
[Topic] Basics Masterclass: Your 90-Minute
My channel Paul
6/26/2025
1:28:44
580325344_mp4_h264_aac_3
My channel Paul
6/25/2025
0:09
See the World: Epic Travel Adventures Await!
My channel Paul
6/18/2025
0:31
Vertical Slow Motion Magic: Mesmerizing Moments Captured in Stunning Detail!
My channel Paul
6/13/2025
0:11
Discover the Best Boat Tours in Nice: Unforgettable Coastal Adventures with Bob!
My channel Paul
6/13/2025
0:13
French Riviera: Your Dream Coastal Getaway!
My channel Paul
6/10/2025
0:09
Explore Nice, France: A 2025 Travel Guide - Discover the French Riviera with Expert Insights
My channel Paul
6/10/2025
51:26
Nick Cassidy: From Kiwi Karting to Formula E Star!
My channel Paul
6/4/2025
0:28
Podcast video
My channel Paul
5/21/2025
0:34
Koenigsegg's Origin Story: The Untold Challenges Before the Hypercar
My channel Paul
5/12/2025
47:06
Moné Monaco: The Story Behind the Riviera's Rising Fashion Brand
My channel Paul
5/12/2025
0:28
Video with no transcript
My channel Paul
4/24/2025
0:28
Subtitles test
My channel Paul
4/24/2025
5:00
Losbter fight podcast dailymotion test video
My channel Paul
4/24/2025
0:15
Outdoor Gym Life in Thailand! My New Open Air Fitness Paradise!
My channel Paul
4/14/2025
0:12
WhatsApp Video 2025-03-18 at 18.11.15
My channel Paul
3/20/2025
3:58
go raibh mile
My channel Paul
3/14/2025
4:22
MIXNINE #10 - 第2回 順位発表式TOP9 日本語字幕
My channel Paul
3/13/2025
0:30
Dailymotion Video - (MATTI TEST)
My channel Paul
3/7/2025