SIZ Education || React Native Tutorial 04 || By @ramzanbaow | 17-06-2021 |

in hive-181430 •  4 years ago 

Assalam-o-Alaikum

Greeting to all Steemians. Hope you all are fine.

Today we are going toward 4th tutorial. In this tutorial we will discuss about TAB NAVIGATION. In this we can create multiple screens . If we take an example than Whats app is one of the best example because in whats app we notice that it has multiple screens like chats ,status, calls etc.

First of all we have to install TAB NAVIGATION command that is available on google REACT NATIVE TAB NAVIGATION.

After this installation we are going towards the step first.

image.png
source

Step 1:
First of all we will apply code in App.js. Firstly we import the View and text component in the app.js .And then we will import Root Stack which is more important for tab navigation because we can import multiple screens easily in Root Stack.

image.png

image.png

Step 2:
In this step we will import multiple screen in Root Stack. And also we have to use Tab Navigator and Navigation Container.
After this we will import screens like:

  • Chats Screen
  • Status Screen
  • Contacts Screens

image.png

image.png

Step 3:

Now we will going to Step 3 and in this we will use more components like Image , Touchableopacity and Flatlist. And then we will also use Constructor , props and use of state. Then we will apply code of entries or we can also say the list that we want to display . Then we will use color list and apply code of Flat List.

image.png

image.png

Step 4:

Now we will use File or folder Style.js that we created in component folder. In this we will import High percentage to DP and Width percentage to DP. Then we will create stylesheet and styling the other components like Image style , Image container , style container, text heading and text desc etc.

image.png

image.png

image.png

image.png

Step 5:

In this step we use flat list container. And we will import image and style separately. And import class component and remember that we have to export with the same name that we use while we imported.

image.png

image.png

Step 6:
In this we will use Image.js folder that is also created in component folder. In this we will create image that we will use in our list and app that we created.

image.png

image.png

Step 7:
In this step we simply run our complete code by connected our phone or emulator by using 2 command that are:

  • Adb devices
  • React-native run-android

If it will be run successfully then we will move on next step

image.png

image.png

Step 8:
After completion of all previous steps we have to check our emulator or phone that our code executed or not. And here our project is running .

image.png

image.png

image.png

Now my tutorial is completed. Today’s tutorial is little bit difficult But I try to make it easier that will easily understandable for everything.. And I hope that you will like it and appreciate as usual.

Special Thanks to:
@cryptokraze
@vvarishayy
@suboohi

JOIN STEEM INFINITY ZONE:

image.png

Regards: @ramzanbaow

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Wow nice JavaScript
My next target 😋
Do you know python language?

After completion back end of react native . My next task is python language or graphic designer

Its really a very informative post.
You work very hard.
I like your hard working

Thanks bro.

This is very informative post keep it up

wow very good post and very informative post

Nice post
You define it very well
I also want to learn this

Thank you for posting in SIZ Community.
your post has been chosen for the top 5 posts of the community. We are giving you a 100% vote from @siz-official which is the community curation account. Keep sharing the quality content. Your reward of 2 steem will be with you within 24 hours.

You can delegate your SP to @siz-official and take benefit of our Delegation Rewards Offer of getting up to 200% Curation Rewards

You can also use these quick delegation links. Just click on your desired amount of SP you want to delegate and it will be done in process of 1 minute.

Quick Delegation to SIZ
50 100 200 300 400 500 1000
2000 3000 4000 5000 10000

image.png

You make a very informative post. I hope everyone learn