A lot of apps that display images often allow users to scroll horizontally across these and will display their place within that list of images. This is what I refer to as a carousel slider. I looked online and found libraries to solutions, but they didn't work as I had wanted them to. Fortunately, I found a video that showed how to do this with zero dependencies, but they didn't include all of the features that I wanted. So I thought I'd show you guys how to create a carousel slider that allows users to interact with it in more ways than just sliding left and right.
It should be noted that in the video I use the component "ReactView" for the component "View" that can be imported from React Native.
(ie import {View as ReactView} from "react-native";)
I did this because I have a local component called View in my project and don't want to mix up the local View component and the View component from react native.
Timestamps:
0:00 - 0:28 - Intro
0:29 - 0:40 - Shout out
0:41 - 3:12 - Configuring the FlatList
3:13 - 3:20 - Progress Check - FlatList
3:21 - 4:15 - Pagination Component
4:16 - 4:22 - Progress Check - Pagination
4:23 - 5:31 - Number Your Images
5:32 - 5:42 - Progress Check - Numbers
5:43 - 8:35 - Back Button & Rating Display
8:38 - 9:01 - Final Product on iPhone & Android
Watch video Create a React Native Carousel Slider in 9 minutes online, duration hours minute second in high quality that is uploaded to the channel Jeremy 11 February 2022. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 3,411 times and liked it 26 visitors.