leecade / leecade/react-native-swiper

keep buttons visible when loop is set to false

Open
#765 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
10.5k
Forks
2.3k
PR merge metrics
No merged PRs in 30d

Description

Which OS ?

ios.

Version

Which versions are you using:

  • react-native-swiper: ^1.5.13
  • react-native v0.504

Hi everyone.
Is there a way to keep the buttons (prevButton and nextButton) visible when the loop is set to false?

What I am trying to accomplish here is to conditionally exit a tour by pressing the nextButton at the very last slide.

I have tried using ** onIndexChanged** with some success but I would like to simplify everything it by keeping the buttons visible.

thanks in advance

screen shot 2018-04-22 at 9 12 07 pm

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing how react-native-swiper handles loop=false and renders prevButton and nextButton, using the issue's final-slide tour scenario as the reproduction case. Done means both buttons remain visible when loop is disabled and the nextButton can be pressed on the last slide.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react-native
Domain
mobile
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.