Tutorials

Learn React, React Native, JavaScript and more with in-depth tutorials.

React Native

Disable the Yellow Box in React Native

The Yellow warning box in React Native can be both helpful and annoying. There are many errors that can be ignored but end up blocking necessary pieces of the application.
React Native

Disable and Ignore Yellow Box Warnings in React Native

Yellow box warnings in react native can be intrusive. We will use console.disableYellowBox to disable the yellow box entirely. We'll also use console.ignoredYellowBox to selectively disabled warnings.
React Native

Create the Basic React Native Todo Application Layout

In this lesson we'll create the basic application layout with a header, content section, and footer. We'll learn to use StyleSheet to create styles to apply to React Native components.
React

Create an Auto Resizing Virtualized List with react-virtualized

In this lesson we'll show how to use the AutoSizer component from react-virtualized to automatically measure the width/height of our content area. We'll then use the List component to render our set of data as a virtualized list into the DOM using windowing.
React

Create a Virtualized List with Auto Sizing Cells using react-virtualized and CellMeasurer

In this lesson we'll use CellMeasurer and CellMeasurerCache to automatically calculate and cache the height of a row. This will allow us to remove the predefined rowHeight on list and allow for dynamically sized rows.
React Native

Create a Video that Auto Plays when Scrolled into View in React Native

In this lesson we'll setup a react-native-video player that is paused when it is not visible but when scrolled into view starts playing the video. We'll also show how to add a small ending threshold so once the video is only partially out of view it will pause.
JavaScript

Create a VSCode Snippet with Tab Stops and Named Variables

In this lesson we'll create a VSCode snippet for quickly reusing code. We'll show how to setup tab stops orders to move the cursor in a specific order when tab is pressed. Then we'll show how to create named variables with default values.
React Native

Create a React Native TextInput

In this lesson we'll use TextInput to receive input from the user and save off separate items into state. We'll store the value on state, show how to setup specific keyboards to display and how to handle actions from the keyboard.
React Native

Create a Looping Background Video with React Native Video

In this lesson we'll show how to use React Native Video to cover the entire background. We'll use the repeat property, and also the helper StyleSheet.absoluteFill property so we do not need to replicate styles. We'll then show how to place a login form on top of the looping video.
React Native

Create a List of Items with a React Native ListView

In this lesson we'll use the ListView component to render a list of items that were entered. We'll show how to setup a ListView.DataSource and how to render custom rows with performance in mind.