TutorialsCourses

Tutorials

Contain an Animation within the Screen Dimensions in React Native
Jason BrownJason Brown

In this lesson we'll use the screen Dimensions and anAnimated.ValueXY to create an animated element that when animated is contained within the screen dimensions. It uses the extrapolate: "clamp" feature of interpolate.

React NativeReact Native
Animating Offsets when Values Change in React Native
Jason BrownJason Brown

In this lesson we'll see how we can use the componentDidUpdate lifecycle method combined with an animation to create the rotating number effect.

React NativeReact Native
Abstract Logic to a Reusable Component and Understand Component Reuse in React Native
Jason BrownJason Brown

In this lesson we'll abstract our code into a reusable Tick component. We'll explore how React will update existing component instances and give us access to necessary data.

React NativeReact Native
Measuring and Creating Hidden Elements with Translate Offsets in React Native
Jason BrownJason Brown

In this lesson we'll walk through the effects of overflow: "hidden". With onLayout we can measure elements even though they are hidden with opacity. Finally we'll show how we can render hidden elements and control what is visible with a translate.

React NativeReact Native
How to Detect Touch Inactivity with a PanResponder in React Native
Jason BrownJason Brown

In this lesson we'll use the onMoveShouldSetPanResponderCapture from PanResponder to register touches with out stealing touches from other PanResponders. We can detect use this method to detect inactivity. This technique can be used for things like video players with auto-hiding controls.

React NativeReact Native
Create a Youtube Video Page with Animated Video Drag to Corner in React Native
Jason BrownJason Brown

Youtube has a unique video playing experience. It allows you to drag a video to the corner of the screen which continues to play. You can then navigate through the site and select other videos. Additionally if you want to drag it back up you can drag back to the video you were viewing.

React NativeReact Native
Build a Map with Custom Animated Markers and Region Focus when Content is Scrolled in React Native
Jason BrownJason Brown

We'll build out a map with react-native-maps and custom animated map makers. We'll construct an a scroll view that when scrolled will animate the marker that it is associated with. Once scrolling has stopped we will animate the map region and focus on the marker we are looking at.

We'll use a single Animated.Value and use and explain interpolate in depth. We'll also show how to use extrapolate: "clamp" to lock our outputRange values.

React NativeReact Native
Build a Reusable Scroll View Component with Animated scrollTo Abilities in React
Jason BrownJason Brown

We'll show how to build a reusable ScrollView and ScrollElement component without adding any additional DOM elements. We'll take advantage of React.cloneElement, React.Children.only,findDOMNode, and context to build a registry of scrollable elements in the list. Then we'll use ref on the ScrollView to expose a way to animate to any item at any scroll position in the list.

ReactReact
Create a Bouncing Heart Shaped Like Button in React Native
Jason BrownJason Brown

In this lesson we'll create a heart shaped like button that bounces when it is pressed. We'll use interpolate and Animated.spring to accomplish the effect.

React NativeReact Native
Create a Button Shake Animation in React Native
Jason BrownJason Brown

In this lesson we'll use Animated.timing and TouchableWithoutFeedback to create an animatable button. We'll learn how to use interpolate to create a non-linear animation. When our button is pressed it will shake from side to side.

React NativeReact Native