TutorialsCourses

Tutorials

Create a Dynamic Animated Notification in React Native
Jason BrownJason Brown

We'll explore how to use various Animated apis including Animated.timing, Animated.parallel, Animated.sequence, setValue, and Animated.delay to build a notification that fades and slides in and out.

We'll learn about using a ref and the measure function to get the dimensions of a particular view. Additionally we'll show how to use the measure function in conjunction with the componentDidUpdate callback on setState.

We'll explain using translateY and to move views around performantly.

React NativeReact Native
Create a Draggable Card with React Native Pan Responder, and Animated.decay
Jason BrownJason Brown

In this lesson we'll create a PanResponder to allow us to drag a card around the screen. We'll use Animated.event to automatically set the values of our Animated.Value and when the card is released we'll use Animated.decay to decelerate it to a stop.

React NativeReact Native
Create a Custom Map Marker with React Native Maps
Jason BrownJason Brown

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.

React NativeReact Native
Create Custom Controls for React Native Video
Jason BrownJason Brown

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 NativeReact Native
Create A Login Screen in React Native
Jason BrownJason Brown

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 NativeReact Native
Convert Imperative Code to a Declarative React Component
Jason BrownJason Brown

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.

ReactReact
Convert CommonJS Requires to ES6 Imports
Jason BrownJason Brown

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.

JavaScriptJavaScript
Build an Animated and Responsive Progress Bar in React Native
Jason BrownJason Brown

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

React NativeReact Native
Build Interactive Video Controls that Animate Visible and Hidden for React Native Video
Jason BrownJason Brown

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 NativeReact Native
Animate the Scale of a React Native Button using Animated.spring
Jason BrownJason Brown

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 NativeReact Native