Nmd Logo Ill

Hints for Codecademy lessons on React Native

Version 1.0

Codecademy has a great series of lessons on the mobile app framework React Native. However, they will be a challenge unless you are already familiar with some React, and you'll need to be willing to skim the documentation.

While Codecademy already allows you to see certain hints or compare working code to your own, there are a number of little issues that can trip you up while you complete each lesson. This cheatsheet offers reminders that can help you overcome these pitfalls as you progress through the lessons.

This document was created for the University of Maine's New Media course in Mobile Applications.

Introduction to React Native

⚙️ While Expo Snacks are a great way to practice React Native and share code with others, to follow the lessons on installing React Native on your own machine will require you to pre-install:

As you progress through this lesson, you’ll need to enter several commands into the terminal and hit return. ⚠️ Make sure to type these commands correctly.

Core components

🎩 Install Expo Go on your phone to try the following exercises on your own device.

View component

Text component

Image component

ScrollView component

Button component

TextInput component

Combining components

Styling in Expo and React Native

Stylesheets

Combining Styles

Flex (box)

Flex Justify Content

Navigation

React Navigation

Tab Navigation

Programmatic Navigation

Nested Navigation

Authentication Flow