How to Show Photos of your Device as a Gallery in React Native

Apps such as image editing apps or social apps allow users to use their own photos. In this react native tutorial, I am going to show you a camera roll example where the images of your device are listed as a grid. CameraRoll is a react native API that gives access to the user’s photos … Read more

How to Create Vibrations in React Native

Vibrations can be used as a way to inform the user that something has happened inside your mobile app. Even though overusing of vibrations make bad impressions, sometimes using vibrations in apps such as games make sense. Here, let’s ‘earn how to create vibrations in react native apps. Lol, the image is just symbolic. The … Read more

How to Style a Text Component with Shadows in React Native

Shadows are pretty useful to create beautiful designs. In react native, we use style props such as elevation to add shadows to different components. But how to add shadows to a text component in react native. Let’s check. A text can be given shadows using three text style props of react native- textShadowOffset, textShadowColor, and … Read more

React Native Animation Tutorial Series (Part 9): How to Create Delays in between Animations in React Native

In the previous blog post, we went through how the multiple animations are managed using methods such as parallel() and sequence(). Now, let’s discuss how to add delays in between animations in react native. When you are composing animations with sequence() and stagger() you can use Animated.delay() method to begin animations after a delay. Let’s … Read more

React Native Animation Tutorial Series (Part 8): How to Manage Multiple Animations in React Native

This is the eighth part of react native animation tutorial series. In this blog post, let’s see how to manage multiple animations in react native. There are three Animated methods for this sequence(), parallel() and stagger(). The sequence() method accepts an array of multiple animations and runs them one after another, ie sequentially. Following is … Read more

React Native Animation Tutorial Series (Part 7): React Native Interpolation Example

React Native animation tutorials cannot be completed without learning interpolation. Interpolation helps you to create good animations by mapping input ranges to output ranges. It gives you a fine control on what output should be attained when a specific input value is fed. For example, this is how you use the interpolate method. What this … Read more

React Native Animation Tutorial Series (Part 6): How to Create Start and Stop Animations in React Native

In the previous tutorials of react native animation series, we discussed how different types of animations are created in react native. In this blog post, let’s see how to start and stop animations in react native. Sometimes, even though we define a specific time for animation we may need it to get stopped to enhance … Read more

React Native Animation Tutorial Series (Part 5): How to Create Looping Animations in React Native

In the previous blog post about animation, we discussed how to create spring animation in react native and now, let’s see how to create animations that loop over how much iterations we define. In order to create looping animations in react native, we should use Animated.loop() method. Wrap your Animations within Animated.loop() and the animations … Read more

How to Darken Background Image in React Native

In react native, ImageBackground component is used to set a background image for a screen. The ImageBackground component should be the parent and all other components should be its children. Sometimes, we might need to tweak the background images to create visually beautiful screens. In this blog post, I will explain how to darken background … Read more

React Native Animation Tutorial Series (Part 4): How to Create Spring Animation in React Native

This is the fourth part of the react native animation tutorial series. I have already posted about fading animations, scaling animations and moving animations. In this blog post, let’s discuss how to add spring animation effect in react native. With spring animation what I mean is an animating movement that follows spring animation. In earlier … Read more

Unable to resolve module `@babel/runtime/helpers/interopRequireDefault` React Native Error Fix

Today, I was trying to run a new react native project with some third-party libraries installed. When I executed react-native run-android command I got the following error. Unable to resolve module `@babel/runtime/helpers/interopRequireDefault` from App.js: @babel/runtime/hepers/interopRequireDefault could not be found within the project. Following is the screenshot of the react native error. As mentioned in the … Read more