Carousel in react native con buttons
The application can be run directly on your mobile device or in a virtual machine. To run on the mobile device, it must have USB debugging enabled and it must be connected via USB to your computer. To run in a virtual machine, make sure you have a virtual machine created.
Then continue with the following steps:
- Download the project on your local computer.
- Open the command console and go to the project path.
- Now run the 'npm install' command to install the necessary dependencies.
- Then run the npx react-native run-android command.
- Now you can see the application on the device.
This app is a carousel with three slides, the slides change automatically every 8 seconds. It also has buttons to change the slide. One button to scroll left and the other to scroll right. If we are in the last slider we will not be able to move further to the right, And the same if we are in the first slider, they will not be able to move to the left. The position of the slide is preserved with local storage, so when you close the application and open it again, the slide will be displayed according to the stored position.
The following is a demonstration:
https://www.youtube.com/watch?v=zJn9vy4Fijs&ab_channel=CanalREDM%C3%81STV