React Native App Intro Slider

React Native Intro Slider is used to introduce your App. It is used to showcase the attractive features of your App for an Example, if you are making an E-commerce App then you can showcase the features like best deals and offers, Fast Delivery, vast variety.

To make an Intro Slider we are going to use react-native-app-intro-slider library. It will provide a AppIntroSlider component which is very easy to integrate. You can see the example below.

In this example, we are going to show how to add an intro slider to your app where the user can swipe through a few slides before getting into the app. We are creating a simple app that contains a few intro slides with next and skip options. The user can navigate through each slide using a swipe gesture or using the next button. So let’s get started.

To Make a React Native App

Getting started with React Native will help you to know more about the way you can make a React Native project. We are going to use react-native init to make our React Native App.

Assuming that you have node installed, you can use npm to install the react-native-cli command line utility.
Open the terminal and go to the workspace and run Run the following commands to create a new React Native project This will make a project structure with an index file named App.js in your project directory.

Installation of Dependency

To use AppIntroSlider you need to install react-native-app-intro-slider package. To install this

Open the terminal and jump into your project

Run the following command

This command will copy all the dependencies into your node_module directory, You can find the directory in node_module directory named react-native-app-intro-slider.

–save is optional, it is just to update the react-native-app-intro-slider dependancy in your package.json file.

Dependency Version for this Example used is

Now Open App.js in any code editor and replace the code with the following code.

App.js

To Run the React Native App

Open the terminal again and jump into your project using. To run the project on an Android Virtual Device or on real debugging device or on the iOS Simulator by running

IOS

                          

Android

                          

That was the React Native Intro Slider. If you have any doubt or you want to share something about the topic you can comment below or contact us here. There will be more posts coming soon. Stay tuned!

Hope you liked it. 🙂

How useful was this post?

Click on a star to rate us!

Average rating / 5. Vote count:

As you found this post useful...

Follow us on social media!

We are sorry that this post was not useful for you!

Let us improve this post!

About Snehal Agrawal

#SelfLearner #MobileAppDeveloper #TechnologyMiner #OpenSourceLover thats enough to describe me..

View all posts by Snehal Agrawal →

7 Comments on “React Native App Intro Slider”

  1. Hi,
    really nice work.
    I just have one question/comment.
    When you this intro-slider in a real device, you’ll find that the user can scroll all slides with just one fast touch. I know that paging is used in the scroller, but it is very easy to reach the end of the scroller with one fast touch across the screen. Have you noticed that? any workaround?

  2. …I have placed my images in the ./src/assets/…jpg folder
    also in ./src/assets/images/…jpg folder
    also same images in .\android\app\src\main\res\drawable-hdpi folder
    even from https://web.facebook.com/photo.php?fbid

    I tried using require(“../assets/images/image.jpg”)
    {uri: ‘image’}
    {uri: ‘https:/…’}
    but none works.

    I’m new to this…Thanks

    1. Hello Mike,
      For this example, we have used the react-native-app-intro-slider library which does not provide the customization of the slider view. You need to make a custom slider for that.
      If you are interested then you can dig into https://github.com/Jacse/react-native-app-intro-slider/blob/master/AppIntroSlider.js file which is the core file of the intro library. Find a logic to make it custom or I’ll try to find any other solution for that.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.