Tutorials

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

React Native

Animate Styles of a React Native View with Animated.timing

In this lesson we will use Animated.timing to animate the opacity and height of a View in our React Native application. This function has attributes that you can set such as easing and duration.
React Native

Animate a Sequence of React Native Animations with Animated.sequence

In this lesson we'll use Animated.sequence to play multiple Animated.timing, and Animated.spring animations one after another.
React Native

Animate the Scale of a React Native Button using Animated.spring

In this lesson we will use Animated.spring and TouchableWithoutFeedback to animate the scale of a button in our React Native application. We will use the scale transform property and see how adjusting the friction of a spring will effect the spring animation.
React Native

Build Interactive Video Controls that Animate Visible and Hidden for React Native Video

We'll modify our previous controls to animate visible when the video is touched or interacted with. The video controls will animate visible in when the video is touched, played, or continues to be interacted with. After a 1500ms timeout elapses the controls will animate away.
React Native

Build an Animated and Responsive Progress Bar in React Native

We'll show how to construct views to build out a responsive progress bar. It will have props to allow for a dynamic border, bar color, and fill colors. Finally we'll use componentDidUpdate to add a smooth animation for when the progress is updated.
JavaScript

Convert CommonJS Requires to ES6 Imports

In this lesson we'll use cjs-to-es6 to convert CommonJS requires to ES6 imports. We'll also show how to convert over a exported default object to take advantage of named exports.
React

Convert Imperative Code to a Declarative React Component

In this lesson we'll show how to take a beforeUnload call and convert it to a declarative React Component. It will handle subscribing to events, and automatically unsubscribing to prevent memory leaks.
React Native

Create A Login Screen in React Native

In this lesson we'll build a generic login screen. We'll explore how to use a background image, how to center content with spacer views, and how to use other flex properties.
React Native

Create Custom Controls for React Native Video

In this lesson we'll use react-native-vector-icons to add play/paused buttons, a seek bar, and the duration of the video. We'll use the onLoad, onProgress, and onEnd callbacks to track the video progress. We'll use the react-native-progress to create an animated progress bar for us. Finally with TouchableWithoutFeedback we will add a tap to seek interaction to jump to specific times in the video.
React Native

Create a Custom Map Marker with React Native Maps

In this lesson we'll create a MapView with react-native-maps. We'll use the onPress function to add Markers to the map and then we'll use the custom map marker feature to style them.