Planning the Required Surfaces and Components
Learn how to organize the app into surfaces, plan reusable components, and address data requirements.
We'll cover the following...
Required app surfaces
We can divide our app into surfaces and then break them down into smaller, reusable components. Our app will need the following surfaces:
Feed (which is also our home surface)
Profile
Favorites
Conversations
Messaging
We have these surfaces set up as files in our project. Let’s take a quick look at the free design file we’ll be using for our app.
Let’s zoom in on the home page:
The “Conversations” surface
You might have noticed there are five items in the bottom tabs on the design. Which one are we missing? The chat bubble. Let’s go ahead and add this surface to our app.
Here’s what our “Conversations” surface looks like so far:
We have created a React component for a “Conversations” surface for our app, displaying a simple view with text indicating that it will serve as the chat screen.
And here’s the App.js file with the newly added screen on line 26:
Okay! Looking good so far!