Social Media App Structure
Learn which surfaces and components are necessary for creating a social media application.
Let us consider which surfaces and components we will need for a simplistic social media app. By surface, we mean what would be a page in web development. That is a big building block of the app, composed of many components presented together on the screen.
Our app will need the following:
A login surface
A social media feed surface
A personal profile surface
We will also create two screens as follows:
A screen containing favorited posts
Another one where the user can add their post
We will use fake data for the feed and profile, and a single username and password for logging in. In order to stay on the simpler side of things, we won’t be implementing a registration flow.
App root
Our app will consist of at least five surfaces, which means we need to set up navigation to be able to move between those surfaces. The user will start off on the login surface. They will fill in their information and they will be redirected to the social media feed surface.
Navigation libraries
Obviously, we need a way for our users to move around the app. One of the most used navigation libraries is called React Navigation.
This is a library created especially for React Native applications. It ...