leecade / leecade/react-native-swiper

Slides from array

Open
#1,057 5 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Which OS ?

iOS and Android

Version

Which versions are you using:

  • react-native-swiper 1.5.13
  • react-native v0.54
Expected behaviour

If i pass array of components i expect to have as much slides as there are componets.

Actual behaviour

I get one slide with all components rendered there.

How to reproduce it>

To help us, please fork this component, modify one example in examples folder to reproduce your issue and include link here.

Steps to reproduce

You can just create this simple code snipet:
`<Swiper
key={slideIndex}
height={0}
ref={(ref) => this.swiper = ref}
loop={false}
index={slideIndex}
showsButtons={false}
showsPagination={false}
scrollEnabled={true}
bounces={false} >

        {[1, 2, 3 ,4].map(data => {
          return <View><Text>{data}</Text></View>
        })}

      </Swiper>`

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 with the Swiper usage shown in the issue and reproduce it in an example under the examples folder using the mapped array of four components. Inspect the component's child and slide handling, then verify that the reproduction renders four separate slides rather than one slide containing all components.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.